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 14 matching lines...) Expand all Loading... |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebHistoryItem_h | 31 #ifndef WebHistoryItem_h |
32 #define WebHistoryItem_h | 32 #define WebHistoryItem_h |
33 | 33 |
34 #include "../platform/WebCommon.h" | 34 #include "../platform/WebCommon.h" |
| 35 #include "../platform/WebHistoryScrollRestorationType.h" |
35 #include "../platform/WebPrivatePtr.h" | 36 #include "../platform/WebPrivatePtr.h" |
36 #include "../platform/WebReferrerPolicy.h" | 37 #include "../platform/WebReferrerPolicy.h" |
37 | 38 |
38 namespace blink { | 39 namespace blink { |
39 | 40 |
40 class HistoryItem; | 41 class HistoryItem; |
41 class WebHTTPBody; | 42 class WebHTTPBody; |
42 class WebString; | 43 class WebString; |
43 class WebSerializedScriptValue; | 44 class WebSerializedScriptValue; |
44 struct WebFloatPoint; | 45 struct WebFloatPoint; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 98 |
98 BLINK_EXPORT long long itemSequenceNumber() const; | 99 BLINK_EXPORT long long itemSequenceNumber() const; |
99 BLINK_EXPORT void setItemSequenceNumber(long long); | 100 BLINK_EXPORT void setItemSequenceNumber(long long); |
100 | 101 |
101 BLINK_EXPORT long long documentSequenceNumber() const; | 102 BLINK_EXPORT long long documentSequenceNumber() const; |
102 BLINK_EXPORT void setDocumentSequenceNumber(long long); | 103 BLINK_EXPORT void setDocumentSequenceNumber(long long); |
103 | 104 |
104 BLINK_EXPORT long long frameSequenceNumber() const; | 105 BLINK_EXPORT long long frameSequenceNumber() const; |
105 BLINK_EXPORT void setFrameSequenceNumber(long long); | 106 BLINK_EXPORT void setFrameSequenceNumber(long long); |
106 | 107 |
| 108 BLINK_EXPORT WebHistoryScrollRestorationType scrollRestorationType() const; |
| 109 BLINK_EXPORT void setScrollRestorationType(WebHistoryScrollRestorationType); |
| 110 |
107 BLINK_EXPORT WebSerializedScriptValue stateObject() const; | 111 BLINK_EXPORT WebSerializedScriptValue stateObject() const; |
108 BLINK_EXPORT void setStateObject(const WebSerializedScriptValue&); | 112 BLINK_EXPORT void setStateObject(const WebSerializedScriptValue&); |
109 | 113 |
110 BLINK_EXPORT WebString httpContentType() const; | 114 BLINK_EXPORT WebString httpContentType() const; |
111 BLINK_EXPORT void setHTTPContentType(const WebString&); | 115 BLINK_EXPORT void setHTTPContentType(const WebString&); |
112 | 116 |
113 BLINK_EXPORT WebHTTPBody httpBody() const; | 117 BLINK_EXPORT WebHTTPBody httpBody() const; |
114 BLINK_EXPORT void setHTTPBody(const WebHTTPBody&); | 118 BLINK_EXPORT void setHTTPBody(const WebHTTPBody&); |
115 | 119 |
116 BLINK_EXPORT WebVector<WebString> getReferencedFilePaths() const; | 120 BLINK_EXPORT WebVector<WebString> getReferencedFilePaths() const; |
117 | 121 |
118 #if BLINK_IMPLEMENTATION | 122 #if BLINK_IMPLEMENTATION |
119 WebHistoryItem(const PassRefPtrWillBeRawPtr<HistoryItem>&); | 123 WebHistoryItem(const PassRefPtrWillBeRawPtr<HistoryItem>&); |
120 WebHistoryItem& operator=(const PassRefPtrWillBeRawPtr<HistoryItem>&); | 124 WebHistoryItem& operator=(const PassRefPtrWillBeRawPtr<HistoryItem>&); |
121 operator PassRefPtrWillBeRawPtr<HistoryItem>() const; | 125 operator PassRefPtrWillBeRawPtr<HistoryItem>() const; |
122 #endif | 126 #endif |
123 | 127 |
124 private: | 128 private: |
125 WebPrivatePtr<HistoryItem> m_private; | 129 WebPrivatePtr<HistoryItem> m_private; |
126 }; | 130 }; |
127 | 131 |
128 } // namespace blink | 132 } // namespace blink |
129 | 133 |
130 #endif | 134 #endif |
OLD | NEW |