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

Unified Diff: headless/lib/browser/headless_web_contents_impl.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 | « no previous file | headless/lib/frame_id_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/lib/browser/headless_web_contents_impl.h
diff --git a/headless/lib/browser/headless_web_contents_impl.h b/headless/lib/browser/headless_web_contents_impl.h
index 3ea0c7887f3b637c245678c828b60b3ef5032205..fbbffd10aa7fb859b86476a5ddc0905a04ebc53f 100644
--- a/headless/lib/browser/headless_web_contents_impl.h
+++ b/headless/lib/browser/headless_web_contents_impl.h
@@ -60,6 +60,10 @@ class HEADLESS_EXPORT HeadlessWebContentsImpl
bool GetFrameTreeNodeIdForDevToolsAgentHostId(
const std::string& devtools_agent_host_id,
int* frame_tree_node_id) const override;
+ std::string GetUntrustedDevToolsFrameIdForFrameTreeNodeId(
+ int process_id,
+ int frame_tree_node_id) const override;
+ int GetMainFrameRenderProcessId() const override;
// HeadlessDevToolsTarget implementation:
bool AttachClient(HeadlessDevToolsClient* client) override;
@@ -100,14 +104,6 @@ class HEADLESS_EXPORT HeadlessWebContentsImpl
return window_tree_host_.get();
}
- // 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.
- std::string GetUntrustedDevToolsFrameIdForFrameTreeNodeId(
- int process_id,
- int frame_tree_node_id) const;
-
- int GetMainFrameRenderProcessId() const;
-
private:
// Takes ownership of |web_contents|.
HeadlessWebContentsImpl(content::WebContents* web_contents,
« no previous file with comments | « no previous file | headless/lib/frame_id_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698