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

Side by Side Diff: Source/core/history/HistoryItem.h

Issue 46783003: Add a unique frame id and save it on HistoryItem. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/frame/Frame.cpp ('k') | Source/core/history/HistoryItem.cpp » ('j') | 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) 2006, 2008, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2008, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2012 Research In Motion Limited. All rights reserved. 3 * Copyright (C) 2012 Research In Motion Limited. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 void setStateObject(PassRefPtr<SerializedScriptValue> object); 85 void setStateObject(PassRefPtr<SerializedScriptValue> object);
86 SerializedScriptValue* stateObject() const { return m_stateObject.get(); } 86 SerializedScriptValue* stateObject() const { return m_stateObject.get(); }
87 87
88 void setItemSequenceNumber(long long number) { m_itemSequenceNumber = number ; } 88 void setItemSequenceNumber(long long number) { m_itemSequenceNumber = number ; }
89 long long itemSequenceNumber() const { return m_itemSequenceNumber; } 89 long long itemSequenceNumber() const { return m_itemSequenceNumber; }
90 90
91 void setDocumentSequenceNumber(long long number) { m_documentSequenceNumber = number; } 91 void setDocumentSequenceNumber(long long number) { m_documentSequenceNumber = number; }
92 long long documentSequenceNumber() const { return m_documentSequenceNumber; } 92 long long documentSequenceNumber() const { return m_documentSequenceNumber; }
93 93
94 void setTargetFrameID(int64_t id) { m_targetFrameID = id; }
95 int64_t targetFrameID() const { return m_targetFrameID; }
96
94 void setFormInfoFromRequest(const ResourceRequest&); 97 void setFormInfoFromRequest(const ResourceRequest&);
95 void setFormData(PassRefPtr<FormData>); 98 void setFormData(PassRefPtr<FormData>);
96 void setFormContentType(const String&); 99 void setFormContentType(const String&);
97 100
98 void addChildItem(PassRefPtr<HistoryItem>); 101 void addChildItem(PassRefPtr<HistoryItem>);
99 void setChildItem(PassRefPtr<HistoryItem>); 102 void setChildItem(PassRefPtr<HistoryItem>);
100 HistoryItem* childItemWithTarget(const String&) const; 103 HistoryItem* childItemWithTarget(const String&) const;
101 HistoryItem* childItemWithDocumentSequenceNumber(long long number) const; 104 HistoryItem* childItemWithDocumentSequenceNumber(long long number) const;
102 const HistoryItemVector& children() const; 105 const HistoryItemVector& children() const;
103 void clearChildren(); 106 void clearChildren();
(...skipping 29 matching lines...) Expand all
133 // clones of one another. Traversing history from one such HistoryItem to 136 // clones of one another. Traversing history from one such HistoryItem to
134 // another is a no-op. HistoryItem clones are created for parent and 137 // another is a no-op. HistoryItem clones are created for parent and
135 // sibling frames when only a subframe navigates. 138 // sibling frames when only a subframe navigates.
136 int64_t m_itemSequenceNumber; 139 int64_t m_itemSequenceNumber;
137 140
138 // If two HistoryItems have the same document sequence number, then they 141 // If two HistoryItems have the same document sequence number, then they
139 // refer to the same instance of a document. Traversing history from one 142 // refer to the same instance of a document. Traversing history from one
140 // such HistoryItem to another preserves the document. 143 // such HistoryItem to another preserves the document.
141 int64_t m_documentSequenceNumber; 144 int64_t m_documentSequenceNumber;
142 145
146 int64_t m_targetFrameID;
147
143 // Support for HTML5 History 148 // Support for HTML5 History
144 RefPtr<SerializedScriptValue> m_stateObject; 149 RefPtr<SerializedScriptValue> m_stateObject;
145 150
146 // info used to repost form data 151 // info used to repost form data
147 RefPtr<FormData> m_formData; 152 RefPtr<FormData> m_formData;
148 String m_formContentType; 153 String m_formContentType;
149 154
150 }; //class HistoryItem 155 }; //class HistoryItem
151 156
152 } //namespace WebCore 157 } //namespace WebCore
153 158
154 #ifndef NDEBUG 159 #ifndef NDEBUG
155 // Outside the WebCore namespace for ease of invocation from gdb. 160 // Outside the WebCore namespace for ease of invocation from gdb.
156 extern "C" int showTree(const WebCore::HistoryItem*); 161 extern "C" int showTree(const WebCore::HistoryItem*);
157 #endif 162 #endif
158 163
159 #endif // HISTORYITEM_H 164 #endif // HISTORYITEM_H
OLDNEW
« no previous file with comments | « Source/core/frame/Frame.cpp ('k') | Source/core/history/HistoryItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698