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..15cddd31f6bc612a9998314a0362a9b96d462808 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 { |
@@ -49,6 +51,8 @@ class CONTENT_EXPORT FrameTreeNode { |
// Clears process specific-state in this node to prepare for a new process. |
void ResetForNewProcess(); |
+ void SetOriginFromURL(const GURL& url); |
Charlie Reis
2014/11/19 00:46:18
Don't forget to remove this.
alexmos
2014/11/19 02:49:27
Done.
|
+ |
FrameTree* frame_tree() const { |
return frame_tree_; |
} |
@@ -87,6 +91,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 +143,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); |
}; |