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

Unified Diff: content/browser/frame_host/navigation_entry_impl.h

Issue 77673003: Add frame_tree_node_id to navigation parameters. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comments 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/navigation_entry_impl.h
diff --git a/content/browser/frame_host/navigation_entry_impl.h b/content/browser/frame_host/navigation_entry_impl.h
index 1149ae6ec5fb11162e6965b16dcfad9dca299a11..c7f4f5fc7c48ff36d3d4b733c404c533d8879b91 100644
--- a/content/browser/frame_host/navigation_entry_impl.h
+++ b/content/browser/frame_host/navigation_entry_impl.h
@@ -216,6 +216,15 @@ class CONTENT_EXPORT NavigationEntryImpl
should_clear_history_list_ = should_clear_history_list;
}
+ // Indicates which FrameTreeNode to navigate. Currently only used if the
+ // --site-per-process flag is passed.
+ int64 frame_tree_node_id() const {
+ return frame_tree_node_id_;
+ }
+ void set_frame_tree_node_id(int64 frame_tree_node_id) {
+ frame_tree_node_id_ = frame_tree_node_id;
+ }
+
private:
// WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
// Session/Tab restore save portions of this class so that it can be recreated
@@ -323,6 +332,13 @@ class CONTENT_EXPORT NavigationEntryImpl
// persisted, because it is currently only used in tests.
std::string frame_to_navigate_;
+ // If not -1, this indicates which FrameTreeNode to navigate. This field is
+ // not persisted because it is experimental and only used when the
+ // --site-per-process flag is passed. It is cleared in |ResetForCommit|
+ // because we only use it while the navigation is pending.
+ // TODO(creis): Move this to FrameNavigationEntry.
+ int64 frame_tree_node_id_;
+
// Used to store extra data to support browser features. This member is not
// persisted, unless specific data is taken out/put back in at save/restore
// time (see TabNavigation for an example of this).
« 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