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

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

Issue 692973005: Pass origin information for remote frame creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add EXPECT_TRUE to NavigateToURL in new tests; nits Created 6 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/frame_tree_node.h
diff --git a/content/browser/frame_host/frame_tree_node.h b/content/browser/frame_host/frame_tree_node.h
index 5974fd29bf5b5ad638dd9c191630def26b0b8ceb..26d68698afe264e3690e988e97cbc8d7db05f627 100644
--- a/content/browser/frame_host/frame_tree_node.h
+++ b/content/browser/frame_host/frame_tree_node.h
@@ -14,7 +14,9 @@
#include "content/browser/frame_host/render_frame_host_impl.h"
#include "content/browser/frame_host/render_frame_host_manager.h"
#include "content/common/content_export.h"
+#include "content/common/frame_replication_state.h"
#include "url/gurl.h"
+#include "url/origin.h"
namespace content {
@@ -87,6 +89,14 @@ class CONTENT_EXPORT FrameTreeNode {
current_url_ = url;
}
+ void set_current_origin(const url::Origin& origin) {
+ replication_state_.origin = origin;
+ }
+
+ const FrameReplicationState& current_replication_state() const {
+ return replication_state_;
+ }
+
RenderFrameHostImpl* current_frame_host() const {
return render_manager_.current_frame_host();
}
@@ -131,6 +141,10 @@ class CONTENT_EXPORT FrameTreeNode {
// NavigationController.
GURL current_url_;
+ // Track information that needs to be replicated to processes that have
+ // proxies for this frame.
+ FrameReplicationState replication_state_;
+
DISALLOW_COPY_AND_ASSIGN(FrameTreeNode);
};

Powered by Google App Engine
This is Rietveld 408576698