diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /toolkit/components/places/nsIBrowserHistory.idl | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'toolkit/components/places/nsIBrowserHistory.idl')
-rw-r--r-- | toolkit/components/places/nsIBrowserHistory.idl | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/toolkit/components/places/nsIBrowserHistory.idl b/toolkit/components/places/nsIBrowserHistory.idl new file mode 100644 index 000000000..8f3265972 --- /dev/null +++ b/toolkit/components/places/nsIBrowserHistory.idl @@ -0,0 +1,70 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +/* + * browser-specific interface to global history + */ + +#include "nsISupports.idl" +#include "nsIGlobalHistory2.idl" + +[scriptable, uuid(20d31479-38de-49f4-9300-566d6e834c66)] +interface nsIBrowserHistory : nsISupports +{ + /** + * Removes a page from global history. + * + * @note It is preferrable to use this one rather then RemovePages when + * removing less than 10 pages, since it won't start a full batch + * operation. + */ + void removePage(in nsIURI aURI); + + /** + * Removes a list of pages from global history. + * + * @param aURIs + * Array of URIs to be removed. + * @param aLength + * Length of the array. + * + * @note the removal happens in a batch. + */ + void removePages([array, size_is(aLength)] in nsIURI aURIs, + in unsigned long aLength); + + /** + * Removes all global history information about pages for a given host. + * + * @param aHost + * Hostname to be removed. + * An empty host name means local files and anything else with no + * hostname. You can also pass in the localized "(local files)" + * title given to you from a history query to remove all + * history information from local files. + * @param aEntireDomain + * If true, will also delete pages from sub hosts (so if + * passed in "microsoft.com" will delete "www.microsoft.com", + * "msdn.microsoft.com", etc.). + * + * @note The removal happens in a batch. + */ + void removePagesFromHost(in AUTF8String aHost, + in boolean aEntireDomain); + + /** + * Removes all pages for a given timeframe. + * Limits are included: aBeginTime <= timeframe <= aEndTime + * + * @param aBeginTime + * Microseconds from epoch, representing the initial time. + * @param aEndTime + * Microseconds from epoch, representing the final time. + * + * @note The removal happens in a batch. + */ + void removePagesByTimeframe(in PRTime aBeginTime, + in PRTime aEndTime); +}; |