WebKit:
[WebKit-https.git] / WebKit / History.subproj / WebHistoryItemPrivate.h
1 /*
2     WebHistoryItemPrivate.h
3     Copyright 2001, 2002, Apple, Inc. All rights reserved.
4  */
5 #import <Cocoa/Cocoa.h>
6
7 #import <WebKit/WebBackForwardList.h>
8 #import <WebKit/WebHistoryItem.h>
9
10 @interface WebHistoryItem (WebPrivate)
11 - (void)_retainIconInDatabase:(BOOL)retain;
12 + (void)_releaseAllPendingPageCaches;
13 - (BOOL)hasPageCache;
14 - (void)setHasPageCache:(BOOL)f;
15 - (NSMutableDictionary *)pageCache;
16
17 + (WebHistoryItem *)entryWithURL:(NSURL *)URL;
18
19 - (id)initWithURL:(NSURL *)URL title:(NSString *)title;
20 - (id)initWithURL:(NSURL *)URL target:(NSString *)target parent:(NSString *)parent title:(NSString *)title;
21
22 - (NSDictionary *)dictionaryRepresentation;
23 - (id)initFromDictionaryRepresentation:(NSDictionary *)dict;
24
25 - (NSString *)parent;
26 - (NSURL *)URL;
27 - (NSString *)target;
28 - (NSPoint)scrollPoint;
29 - (NSArray *)documentState;
30 - (BOOL)isTargetItem;
31 - (NSData *)formData;
32 - (NSString *)formContentType;
33 - (NSString *)formReferrer;
34 - (NSString *)RSSFeedReferrer;
35 - (int)visitCount;
36
37 - (void)_mergeAutoCompleteHints:(WebHistoryItem *)otherItem;
38
39 - (void)setURL:(NSURL *)URL;
40 - (void)setURLString:(NSString *)string;
41 - (void)setOriginalURLString:(NSString *)URL;
42 - (void)setTarget:(NSString *)target;
43 - (void)setParent:(NSString *)parent;
44 - (void)setTitle:(NSString *)title;
45 - (void)setScrollPoint:(NSPoint)p;
46 - (void)setDocumentState:(NSArray *)state;
47 - (void)setIsTargetItem:(BOOL)flag;
48 - (void)setFormData:(NSData *)data;
49 - (void)setFormContentType:(NSString *)type;
50 - (void)setFormReferrer:(NSString *)referrer;
51 - (void)setRSSFeedReferrer:(NSString *)referrer;
52 - (void)setVisitCount:(int)count;
53
54 - (NSArray *)children;
55 - (void)addChildItem:(WebHistoryItem *)item;
56 - (WebHistoryItem *)childItemWithName:(NSString *)name;
57 - (WebHistoryItem *)targetItem;
58
59 - (void)setAlwaysAttemptToUsePageCache:(BOOL)flag;
60 - (BOOL)alwaysAttemptToUsePageCache;
61
62 - (void)setNotificationsSuppressed:(BOOL)flag;
63 - (BOOL)notificationsSuppressed;
64
65 - (NSCalendarDate *)_lastVisitedDate;
66 - (void)_setLastVisitedTimeInterval:(NSTimeInterval)time;
67
68 @end
69
70 @interface WebBackForwardList (WebPrivate)
71 - (BOOL)_usesPageCache;
72 - (void)_clearPageCache;
73 @end
74