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 3d5d563eca5d78719d4d267491257cf65b960259..d678c9a53903e24403b6dbbf84c81ab9a125aa8a 100644 |
--- a/content/browser/frame_host/frame_tree_node.h |
+++ b/content/browser/frame_host/frame_tree_node.h |
@@ -112,6 +112,7 @@ class CONTENT_EXPORT FrameTreeNode { |
return children_[index].get(); |
} |
+ // Returns the URL of the last committed page in this frame. |
const GURL& current_url() const { |
return current_url_; |
} |
@@ -125,6 +126,11 @@ class CONTENT_EXPORT FrameTreeNode { |
return has_committed_real_load_; |
} |
+ // Returns the origin of the last committed page in this frame. |
+ const url::Origin& current_origin() const { |
+ return replication_state_.origin; |
+ } |
+ |
// Set the current origin and notify proxies about the update. |
void SetCurrentOrigin(const url::Origin& origin); |