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

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

Issue 2856653004: Require a process ID when looking up RFHs by FrameTreeNode ID. (Closed)
Patch Set: Update 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..13c647d63de2c33a17055f5bafdfd478e2438e23 100644
--- a/content/public/browser/navigation_handle.h
+++ b/content/public/browser/navigation_handle.h
@@ -82,9 +82,10 @@ class CONTENT_EXPORT NavigationHandle {
// stays constant for the lifetime of the frame.
virtual int GetFrameTreeNodeId() = 0;
- // Returns the FrameTreeNode ID for the parent frame. If this navigation is
- // taking place in the main frame, the value returned is -1.
- 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;
Devlin 2017/05/02 02:04:29 If we were worried before about callers storing th
Charlie Reis 2017/05/04 16:29:58 Yes, since the parent RenderFrameHost doesn't chan
// The WebContents the navigation is taking place in.
WebContents* GetWebContents();

Powered by Google App Engine
This is Rietveld 408576698