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

Unified Diff: headless/public/headless_web_contents.h

Issue 2872543002: Headless: Move GetUntrustedDevToolsFrameIdForFrameTreeNodeId to public (Closed)
Patch Set: 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
« no previous file with comments | « headless/lib/frame_id_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/public/headless_web_contents.h
diff --git a/headless/public/headless_web_contents.h b/headless/public/headless_web_contents.h
index 8986358bdb80bdb68a95936416b6dcddc98a8a78..5fcfad8effbfca3307cf7ee030fc15884952c176 100644
--- a/headless/public/headless_web_contents.h
+++ b/headless/public/headless_web_contents.h
@@ -90,6 +90,14 @@ class HEADLESS_EXPORT HeadlessWebContents {
const std::string& devtools_agent_host_id,
int* frame_tree_node_id) const = 0;
+ // Returns the devtools frame id corresponding to the |frame_tree_node_id|, if
+ // any. Note this relies on an IPC sent from blink during navigation.
+ virtual std::string GetUntrustedDevToolsFrameIdForFrameTreeNodeId(
+ int process_id,
+ int frame_tree_node_id) const = 0;
+
+ virtual int GetMainFrameRenderProcessId() const = 0;
+
private:
friend class HeadlessWebContentsImpl;
HeadlessWebContents() {}
« no previous file with comments | « headless/lib/frame_id_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698