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

Side by Side Diff: content/browser/frame_host/navigation_entry_impl.h

Issue 30323002: [DRAFT] Create RenderFrameHostManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "content/browser/site_instance_impl.h" 10 #include "content/browser/site_instance_impl.h"
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 209
210 // Whether this (pending) navigation should clear the session history. Resets 210 // Whether this (pending) navigation should clear the session history. Resets
211 // to false after commit. 211 // to false after commit.
212 bool should_clear_history_list() const { 212 bool should_clear_history_list() const {
213 return should_clear_history_list_; 213 return should_clear_history_list_;
214 } 214 }
215 void set_should_clear_history_list(bool should_clear_history_list) { 215 void set_should_clear_history_list(bool should_clear_history_list) {
216 should_clear_history_list_ = should_clear_history_list; 216 should_clear_history_list_ = should_clear_history_list;
217 } 217 }
218 218
219 int64 frame_tree_node_id() const {
220 return frame_tree_node_id_;
221 }
222 void set_frame_tree_node_id(int64 frame_tree_node_id) {
223 frame_tree_node_id_ = frame_tree_node_id;
224 }
225
219 private: 226 private:
220 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING 227 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
221 // Session/Tab restore save portions of this class so that it can be recreated 228 // Session/Tab restore save portions of this class so that it can be recreated
222 // later. If you add a new field that needs to be persisted you'll have to 229 // later. If you add a new field that needs to be persisted you'll have to
223 // update SessionService/TabRestoreService and Android WebView 230 // update SessionService/TabRestoreService and Android WebView
224 // state_serializer.cc appropriately. 231 // state_serializer.cc appropriately.
225 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING 232 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
226 233
227 // See the accessors above for descriptions. 234 // See the accessors above for descriptions.
228 int unique_id_; 235 int unique_id_;
(...skipping 13 matching lines...) Expand all
242 PageTransition transition_type_; 249 PageTransition transition_type_;
243 GURL user_typed_url_; 250 GURL user_typed_url_;
244 bool has_post_data_; 251 bool has_post_data_;
245 int64 post_id_; 252 int64 post_id_;
246 RestoreType restore_type_; 253 RestoreType restore_type_;
247 GURL original_request_url_; 254 GURL original_request_url_;
248 bool is_overriding_user_agent_; 255 bool is_overriding_user_agent_;
249 base::Time timestamp_; 256 base::Time timestamp_;
250 int http_status_code_; 257 int http_status_code_;
251 258
259 // TODO(creis): Persist frame tree node ID. This belongs on
260 // FrameNavigationEntry.
261 int64 frame_tree_node_id_;
262
252 // This member is not persisted with session restore because it is transient. 263 // This member is not persisted with session restore because it is transient.
253 // If the post request succeeds, this field is cleared since the same 264 // If the post request succeeds, this field is cleared since the same
254 // information is stored in |content_state_| above. It is also only shallow 265 // information is stored in |content_state_| above. It is also only shallow
255 // copied with compiler provided copy constructor. 266 // copied with compiler provided copy constructor.
256 // Cleared in |ResetForCommit|. 267 // Cleared in |ResetForCommit|.
257 scoped_refptr<const base::RefCountedMemory> browser_initiated_post_data_; 268 scoped_refptr<const base::RefCountedMemory> browser_initiated_post_data_;
258 269
259 // This is also a transient member (i.e. is not persisted with session 270 // This is also a transient member (i.e. is not persisted with session
260 // restore). The screenshot of a page is taken when navigating away from the 271 // restore). The screenshot of a page is taken when navigating away from the
261 // page. This screenshot is displayed during an overscroll-navigation 272 // page. This screenshot is displayed during an overscroll-navigation
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 // persisted, unless specific data is taken out/put back in at save/restore 338 // persisted, unless specific data is taken out/put back in at save/restore
328 // time (see TabNavigation for an example of this). 339 // time (see TabNavigation for an example of this).
329 std::map<std::string, string16> extra_data_; 340 std::map<std::string, string16> extra_data_;
330 341
331 // Copy and assignment is explicitly allowed for this class. 342 // Copy and assignment is explicitly allowed for this class.
332 }; 343 };
333 344
334 } // namespace content 345 } // namespace content
335 346
336 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ 347 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_controller_impl.cc ('k') | content/browser/frame_host/navigation_entry_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698