Index: content/browser/web_contents/frame_tree_node.h |
diff --git a/content/browser/web_contents/frame_tree_node.h b/content/browser/web_contents/frame_tree_node.h |
index c35df025929b7385788c64818d21ca14a24e8834..d03a337c5350d41a5c3b3810fa47661b36b1caac 100644 |
--- a/content/browser/web_contents/frame_tree_node.h |
+++ b/content/browser/web_contents/frame_tree_node.h |
@@ -10,6 +10,7 @@ |
#include "base/basictypes.h" |
#include "content/common/content_export.h" |
+#include "googleurl/src/gurl.h" |
namespace content { |
@@ -42,6 +43,14 @@ class CONTENT_EXPORT FrameTreeNode { |
return children_[index]; |
} |
+ const GURL& current_url() const { |
+ return current_url_; |
+ } |
+ |
+ void set_current_url(const GURL& url) { |
+ current_url_ = url; |
+ } |
+ |
private: |
// The unique identifier for the frame in the page. |
int64 frame_id_; |
@@ -53,6 +62,10 @@ class CONTENT_EXPORT FrameTreeNode { |
// The immediate children of this specific frame. |
std::vector<FrameTreeNode*> children_; |
+ // Temporarily track the current frame's last committed URL, so we can |
darin (slow to review)
2013/06/12 04:40:48
nit: Maybe leave off "Temporarily" or add a TODO?
Charlie Reis
2013/06/12 18:59:16
Done.
|
+ // estimate the process impact of out-of-process iframes. |
+ GURL current_url_; |
+ |
DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); |
}; |