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

Unified Diff: headless/public/headless_browser_context.h

Issue 2830753004: Pipe the devTools FrameId from blink into the browser for headless (Closed)
Patch Set: Add include for msvc 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: headless/public/headless_browser_context.h
diff --git a/headless/public/headless_browser_context.h b/headless/public/headless_browser_context.h
index 7f0b48ad0dcdf76c9d72386ddc89d99ba3d0c7f4..f94647a68f1cd75ccc0f0ccfd38b52cd12485cfb 100644
--- a/headless/public/headless_browser_context.h
+++ b/headless/public/headless_browser_context.h
@@ -59,6 +59,11 @@ class HEADLESS_EXPORT HeadlessBrowserContext {
virtual HeadlessWebContents* GetWebContentsForDevToolsAgentHostId(
const std::string& devtools_agent_host_id) = 0;
+ // Returns the frame tree node id for the corresponding RenderFrameHost or -1
+ // if it can't be found. Can be called on any thread.
+ virtual int GetFrameTreeNodeId(int render_process_id,
+ int render_frame_id) const = 0;
+
// Destroy this BrowserContext and all WebContents associated with it.
virtual void Close() = 0;

Powered by Google App Engine
This is Rietveld 408576698