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

Unified Diff: third_party/WebKit/public/web/WebLocalFrame.h

Issue 2712773002: Add trace event for detecting main frame in loading metrics. (Closed)
Patch Set: comment Created 3 years, 10 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
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebLocalFrame.h
diff --git a/third_party/WebKit/public/web/WebLocalFrame.h b/third_party/WebKit/public/web/WebLocalFrame.h
index 7f51aa1d49449953e6a18a00f4001a19ff8fb31b..b4ee7153ebf1baf4c45ec867399fbf2ff896b6f7 100644
--- a/third_party/WebKit/public/web/WebLocalFrame.h
+++ b/third_party/WebKit/public/web/WebLocalFrame.h
@@ -502,6 +502,12 @@ class WebLocalFrame : public WebFrame {
// Returns the WebInputMethodController associated with this local frame.
virtual WebInputMethodController* inputMethodController() const = 0;
+ // Tracing support ----------------------------------------------------------
+ // Returns the value for the "frame" argument in TRACE_EVENT* calls.
+ // This function is intended to be used in components that do not have
+ // access to the local frame, but still want to trace frame related events.
+ virtual void* frameIdForTracing() const = 0;
ulan 2017/02/22 21:16:37 This is not really nice. I would appreciate better
haraken 2017/02/22 23:56:21 In practice, this will work because Oilpan's compa
+
protected:
explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {}
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698