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

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

Issue 16599016: Add UMA stats for predicted process counts with out-of-process iframes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nit. Created 7 years, 6 months 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/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);
};

Powered by Google App Engine
This is Rietveld 408576698