OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
43 class WebSerializedScriptValue; | 43 class WebSerializedScriptValue; |
44 struct WebFloatPoint; | 44 struct WebFloatPoint; |
45 struct WebPoint; | 45 struct WebPoint; |
46 template <typename T> class WebVector; | 46 template <typename T> class WebVector; |
47 | 47 |
48 enum WebHistoryLoadType { | 48 enum WebHistoryLoadType { |
49 WebHistorySameDocumentLoad, | 49 WebHistorySameDocumentLoad, |
50 WebHistoryDifferentDocumentLoad | 50 WebHistoryDifferentDocumentLoad |
51 }; | 51 }; |
52 | 52 |
53 enum WebHistoryScrollRestorationType { | |
Nate Chapin
2015/05/08 23:19:54
This and the corresponding type in FrameLoaderType
| |
54 WebHistoryScrollRestorationAuto, | |
55 WebHistoryScrollRestorationManual | |
56 }; | |
57 | |
53 // Represents a frame-level navigation entry in session history. A | 58 // Represents a frame-level navigation entry in session history. A |
54 // WebHistoryItem is a node in a tree. | 59 // WebHistoryItem is a node in a tree. |
55 // | 60 // |
56 // Copying a WebHistoryItem is cheap. | 61 // Copying a WebHistoryItem is cheap. |
57 // | 62 // |
58 class WebHistoryItem { | 63 class WebHistoryItem { |
59 public: | 64 public: |
60 ~WebHistoryItem() { reset(); } | 65 ~WebHistoryItem() { reset(); } |
61 | 66 |
62 WebHistoryItem() { } | 67 WebHistoryItem() { } |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
97 | 102 |
98 BLINK_EXPORT long long itemSequenceNumber() const; | 103 BLINK_EXPORT long long itemSequenceNumber() const; |
99 BLINK_EXPORT void setItemSequenceNumber(long long); | 104 BLINK_EXPORT void setItemSequenceNumber(long long); |
100 | 105 |
101 BLINK_EXPORT long long documentSequenceNumber() const; | 106 BLINK_EXPORT long long documentSequenceNumber() const; |
102 BLINK_EXPORT void setDocumentSequenceNumber(long long); | 107 BLINK_EXPORT void setDocumentSequenceNumber(long long); |
103 | 108 |
104 BLINK_EXPORT long long frameSequenceNumber() const; | 109 BLINK_EXPORT long long frameSequenceNumber() const; |
105 BLINK_EXPORT void setFrameSequenceNumber(long long); | 110 BLINK_EXPORT void setFrameSequenceNumber(long long); |
106 | 111 |
112 BLINK_EXPORT WebHistoryScrollRestorationType scrollRestorationType() const; | |
113 BLINK_EXPORT void setScrollRestorationType(WebHistoryScrollRestorationType); | |
114 | |
107 BLINK_EXPORT WebSerializedScriptValue stateObject() const; | 115 BLINK_EXPORT WebSerializedScriptValue stateObject() const; |
108 BLINK_EXPORT void setStateObject(const WebSerializedScriptValue&); | 116 BLINK_EXPORT void setStateObject(const WebSerializedScriptValue&); |
109 | 117 |
110 BLINK_EXPORT WebString httpContentType() const; | 118 BLINK_EXPORT WebString httpContentType() const; |
111 BLINK_EXPORT void setHTTPContentType(const WebString&); | 119 BLINK_EXPORT void setHTTPContentType(const WebString&); |
112 | 120 |
113 BLINK_EXPORT WebHTTPBody httpBody() const; | 121 BLINK_EXPORT WebHTTPBody httpBody() const; |
114 BLINK_EXPORT void setHTTPBody(const WebHTTPBody&); | 122 BLINK_EXPORT void setHTTPBody(const WebHTTPBody&); |
115 | 123 |
116 BLINK_EXPORT WebVector<WebString> getReferencedFilePaths() const; | 124 BLINK_EXPORT WebVector<WebString> getReferencedFilePaths() const; |
117 | 125 |
118 #if BLINK_IMPLEMENTATION | 126 #if BLINK_IMPLEMENTATION |
119 WebHistoryItem(const PassRefPtrWillBeRawPtr<HistoryItem>&); | 127 WebHistoryItem(const PassRefPtrWillBeRawPtr<HistoryItem>&); |
120 WebHistoryItem& operator=(const PassRefPtrWillBeRawPtr<HistoryItem>&); | 128 WebHistoryItem& operator=(const PassRefPtrWillBeRawPtr<HistoryItem>&); |
121 operator PassRefPtrWillBeRawPtr<HistoryItem>() const; | 129 operator PassRefPtrWillBeRawPtr<HistoryItem>() const; |
122 #endif | 130 #endif |
123 | 131 |
124 private: | 132 private: |
125 WebPrivatePtr<HistoryItem> m_private; | 133 WebPrivatePtr<HistoryItem> m_private; |
126 }; | 134 }; |
127 | 135 |
128 } // namespace blink | 136 } // namespace blink |
129 | 137 |
130 #endif | 138 #endif |
OLD | NEW |