webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
#import <WebHistory.h>
Public Types | |
typedef int64_t | DateKey |
typedef HashMap< DateKey, Vector< COMPtr< IWebHistoryItem > > > | DateToEntriesMap |
typedef HashMap< WTF::String, COMPtr< IWebHistoryItem > > | URLToEntriesMap |
Instance Methods | |
(BOOL) | - loadFromURL:error: |
(BOOL) | - saveToURL:error: |
(void) | - addItems: |
(void) | - removeItems: |
(void) | - removeAllItems |
(NSArray *) | - orderedItemsLastVisitedOnDay: |
(WebHistoryItem *) | - itemForURL: |
(virtual HRESULT STDMETHODCALLTYPE) | - QueryInterface |
(virtual ULONG STDMETHODCALLTYPE) | - AddRef |
(virtual ULONG STDMETHODCALLTYPE) | - Release |
(virtual HRESULT STDMETHODCALLTYPE) | - optionalSharedHistory |
(virtual HRESULT STDMETHODCALLTYPE) | - setOptionalSharedHistory |
(HRESULT STDMETHODCALLTYPE) | - unused1 |
(HRESULT STDMETHODCALLTYPE) | - unused2 |
(virtual HRESULT STDMETHODCALLTYPE) | - addItems |
(virtual HRESULT STDMETHODCALLTYPE) | - removeItems |
(virtual HRESULT STDMETHODCALLTYPE) | - removeAllItems |
(virtual HRESULT STDMETHODCALLTYPE) | - orderedLastVisitedDays |
(virtual HRESULT STDMETHODCALLTYPE) | - orderedItemsLastVisitedOnDay |
(virtual HRESULT STDMETHODCALLTYPE) | - itemForURL |
(virtual HRESULT STDMETHODCALLTYPE) | - setHistoryItemLimit |
(virtual HRESULT STDMETHODCALLTYPE) | - historyItemLimit |
(virtual HRESULT STDMETHODCALLTYPE) | - setHistoryAgeInDaysLimit |
(virtual HRESULT STDMETHODCALLTYPE) | - historyAgeInDaysLimit |
(virtual HRESULT STDMETHODCALLTYPE) | - allItems |
(virtual HRESULT STDMETHODCALLTYPE) | - setVisitedLinkTrackingEnabled |
(virtual HRESULT STDMETHODCALLTYPE) | - removeAllVisitedLinks |
(void) | - visitedURL |
(void) | - addVisitedLinksToVisitedLinkStore |
(COMPtr< IWebHistoryItem >) | - itemForURLString |
Instance Methods inherited from IWebHistory | |
HRESULT | optionalSharedHistory ([out, retval] IWebHistory **history) |
HRESULT | setOptionalSharedHistory ([in] IWebHistory *history) |
HRESULT | addItems ([in] int itemCount, [in] IWebHistoryItem **items) |
HRESULT | removeItems ([in] int itemCount, [in] IWebHistoryItem **items) |
HRESULT | orderedLastVisitedDays ([in, out] int *count, [in] DATE *calendarDates) |
HRESULT | orderedItemsLastVisitedOnDay ([in, out] int *count, [in] IWebHistoryItem **items, [in] DATE calendarDate) |
HRESULT | itemForURL ([in] BSTR url, [out, retval] IWebHistoryItem **item) |
HRESULT | historyItemLimit ([out, retval] int *limit) |
HRESULT | historyAgeInDaysLimit ([out, retval] int *limit) |
Instance Methods inherited from IWebHistoryPrivate | |
HRESULT | allItems ([in, out] int *count, [out, retval] IWebHistoryItem **items) |
Class Methods | |
(WebHistory *) | + optionalSharedHistory |
(void) | + setOptionalSharedHistory: |
(static WebHistory *) | + createInstance |
(static WebHistory *) | + sharedHistory |
Protected Attributes | |
package WebHistoryPrivate * | _historyPrivate |
Properties | |
NSArray * | orderedLastVisitedDays |
int | historyItemLimit |
int | historyAgeInDaysLimit |
WebHistory is used to track pages that have been loaded by WebKit.
- (typedef HashMap<DateKey, Vector<COMPtr<IWebHistoryItem> > >) DateToEntriesMap |
- (typedef String, COMPtr<IWebHistoryItem> >) WebHistory: |
- (HRESULT) addItems | (int) | itemCount | |
(__deref_in_ecount_opt(itemCount) IWebHistoryItem **) | items | ||
addItems:
newItems | An array of WebHistoryItems to add to the WebHistory. |
- (void) addVisitedLinksToVisitedLinkStore | (WebVisitedLinkStore &) | visitedLinkStore |
- (HRESULT) allItems | (_Inout_ int *) | count | |
(__deref_opt_out IWebHistoryItem **) | items | ||
+ (WebHistory *) createInstance |
- (HRESULT) historyAgeInDaysLimit | (_Out_ int *) | limit |
- (HRESULT) historyItemLimit | (_Out_ int *) | limit |
- (HRESULT) itemForURL | (_In_ BSTR) | url | |
(_COM_Outptr_opt_ IWebHistoryItem **) | item | ||
- (WebHistoryItem *) itemForURL: | (NSURL *) | URL |
itemForURL: Get an item for a specific URL
URL | The URL of the history item to search for |
- (COMPtr< IWebHistoryItem >) itemForURLString | (const WTF::String &) | const |
loadFromURL:error:
URL | The URL to use to initialize the WebHistory. |
error | Set to nil or an NSError instance if an error occurred. The designated initializer for WebHistory. |
- (HRESULT) optionalSharedHistory | (_COM_Outptr_opt_ IWebHistory **) | history |
+ (WebHistory *) optionalSharedHistory |
optionalSharedHistory Returns a shared WebHistory instance initialized with the default history file.
- (HRESULT) orderedItemsLastVisitedOnDay | (_Inout_ int *) | count | |
(__deref_in_opt IWebHistoryItem **) | items | ||
(DATE) | calendarDate | ||
- (NSArray *) orderedItemsLastVisitedOnDay: | (NSCalendarDate *) | calendarDate |
orderedItemsLastVisitedOnDay: Get an array of WebHistoryItem that were last visited on the day represented by the specified NSCalendarDate, ordered from most recent to oldest.
calendarDate | A date identifying the unique day of interest. |
- (HRESULT) orderedLastVisitedDays | (_Inout_ int *) | count | |
(_In_ DATE *) | calendarDates | ||
- (HRESULT) removeAllItems |
removeAllItems
Implements IWebHistory.
- (virtual HRESULT STDMETHODCALLTYPE) removeAllItems |
- (HRESULT) removeAllVisitedLinks |
Implements IWebHistoryPrivate.
- (HRESULT) removeItems | (int) | itemCount | |
(__deref_in_ecount_opt(itemCount) IWebHistoryItem **) | items | ||
removeItems:
items | An array of WebHistoryItems to remove from the WebHistory. |
saveToURL:error: Save history to URL. It is the client's responsibility to call this at appropriate times.
URL | The URL to use to save the WebHistory. |
error | Set to nil or an NSError instance if an error occurred. |
- (HRESULT) setHistoryAgeInDaysLimit | (int) | limit |
setHistoryAgeInDaysLimit: setHistoryAgeInDaysLimit: sets the maximum number of days to be read from stored history.
limit | The maximum number of days to be read from stored history.
|
Implements IWebHistory.
- (HRESULT) setHistoryItemLimit | (int) | limit |
setHistoryItemLimit: Limits the number of items that will be stored by the WebHistory.
limit | The maximum number of items that will be stored by the WebHistory.
|
Implements IWebHistory.
- (HRESULT) setOptionalSharedHistory | (_In_opt_ IWebHistory *) | history |
+ (void) setOptionalSharedHistory: | (WebHistory *) | history |
setOptionalSharedHistory:
history | The history to use for the global WebHistory. |
Implements IWebHistoryPrivate.
+ (WebHistory *) sharedHistory |
- (HRESULT) unused1 |
Implements IWebHistory.
- (HRESULT) unused2 |
Implements IWebHistory.
- (void) visitedURL | (const WebCore::URL &) | ||
(const WTF::String &) | title | ||
(const WTF::String &) | httpMethod | ||
(bool) | wasFailure | ||
(bool) | increaseVisitCount | ||
|
protected |
|
readwritenonatomicassign |
The maximum number of days to be read from stored history.
|
readwritenonatomicassign |
The maximum number of items that will be stored by the WebHistory.
|
readnonatomiccopy |
An array of NSCalendarDates for which history items exist in the WebHistory. An array of NSCalendarDates, each one representing a unique day that contains one or more history items, ordered from most recent to oldest.