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

Unified Diff: content/public/browser/render_frame_host.h

Issue 2857263003: Task Manager should listen to WebContentsObserver::RenderFrameCreated. (Closed)
Patch Set: RenderFrameHost::IsCurrent Created 3 years, 7 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/public/browser/render_frame_host.h
diff --git a/content/public/browser/render_frame_host.h b/content/public/browser/render_frame_host.h
index 72cbc18bbafaea6d07ae5e29f5e9c42fc69c5d0a..715010bf9443b64b66026eb40bc43062fc1978bc 100644
--- a/content/public/browser/render_frame_host.h
+++ b/content/public/browser/render_frame_host.h
@@ -198,6 +198,10 @@ class CONTENT_EXPORT RenderFrameHost : public IPC::Listener,
// and still has a connection. This is valid for all frames.
virtual bool IsRenderFrameLive() = 0;
+ // This method returns false only for RenderFrameHost created for the purpose
+ // of swapping out another RenderFrameHost, until the swap actually happens.
ncarter (slow) 2017/05/16 20:50:57 // Returns true if this is the currently-visible R
Łukasz Anforowicz 2017/05/16 21:33:44 Done.
+ virtual bool IsCurrent() = 0;
+
// Get the number of proxies to this frame, in all processes. Exposed for
// use by resource metrics.
virtual int GetProxyCount() = 0;

Powered by Google App Engine
This is Rietveld 408576698