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

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

Issue 2837603002: Content API changes to improve DOM stitching in ThreatDetails code. (Closed)
Patch Set: Address comments 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..38863fcd9e16e2329524440d9e24b961f1176fff 100644
--- a/content/public/browser/render_frame_host.h
+++ b/content/public/browser/render_frame_host.h
@@ -49,6 +49,9 @@ struct FileChooserFileInfo;
class CONTENT_EXPORT RenderFrameHost : public IPC::Listener,
public IPC::Sender {
public:
+ // Constant used to denote that a lookup of a FrameTreeNode ID has failed.
+ static const int kNoFrameTreeNodeId = -1;
+
// Returns the RenderFrameHost given its ID and the ID of its render process.
// Returns nullptr if the IDs do not correspond to a live RenderFrameHost.
static RenderFrameHost* FromID(int render_process_id, int render_frame_id);
@@ -63,6 +66,11 @@ class CONTENT_EXPORT RenderFrameHost : public IPC::Listener,
// Returns a RenderFrameHost given its accessibility tree ID.
static RenderFrameHost* FromAXTreeID(int ax_tree_id);
+ // Returns the FrameTreeNode ID corresponding to the specified |process_id|
+ // and |routing_id|. This routing ID pair may represent a placeholder for
+ // frame that is currently rendered in a different process than |process_id|.
+ static int GetFrameTreeNodeIdForRoutingId(int process_id, int routing_id);
+
~RenderFrameHost() override {}
// Returns the route id for this frame.

Powered by Google App Engine
This is Rietveld 408576698