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

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

Issue 2856653004: Require a process ID when looking up RFHs by FrameTreeNode ID. (Closed)
Patch Set: Add comment. Created 3 years, 8 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/navigation_handle.h
diff --git a/content/public/browser/navigation_handle.h b/content/public/browser/navigation_handle.h
index 684fd26aa145b62a67505afb0e6db0e3a5ab4456..67550b048550342300f9701af0d4d3cc484ba2ea 100644
--- a/content/public/browser/navigation_handle.h
+++ b/content/public/browser/navigation_handle.h
@@ -86,6 +86,11 @@ class CONTENT_EXPORT NavigationHandle {
// taking place in the main frame, the value returned is -1.
ncarter (slow) 2017/05/01 22:15:32 Deprecate this?
Charlie Reis 2017/05/01 22:36:51 Interesting. Yes, the only other caller is Extens
virtual int GetParentFrameTreeNodeId() = 0;
+ // Returns the RenderFrameHost for the parent frame, or nullptr if this
+ // navigation is taking place in the main frame. This value will not change
+ // during a navigation.
+ virtual RenderFrameHost* GetParentFrame() = 0;
+
// The WebContents the navigation is taking place in.
WebContents* GetWebContents();

Powered by Google App Engine
This is Rietveld 408576698