Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: public/web/WebHistoryItem.h

Issue 927213004: Accept options in history APIs to allow scroll restoration to be disabled (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « public/platform/WebHistoryScrollRestorationType.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « public/platform/WebHistoryScrollRestorationType.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698