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

Unified Diff: headless/public/headless_browser.h

Issue 2840993003: [headless] Expose DevToolsTarget via HeadlessBrowser + add tracing test. (Closed)
Patch Set: rebase 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
« no previous file with comments | « headless/lib/headless_browser_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_browser.h
diff --git a/headless/public/headless_browser.h b/headless/public/headless_browser.h
index 4b18f565b9e8fc2f2b8cb91ad0bb885a26a8a64e..8d0689fa4ba9b19bd46c93917a115606f33e3154 100644
--- a/headless/public/headless_browser.h
+++ b/headless/public/headless_browser.h
@@ -46,6 +46,12 @@ class HEADLESS_EXPORT HeadlessBrowser {
virtual std::vector<HeadlessBrowserContext*> GetAllBrowserContexts() = 0;
+ // Return a DevTools target corresponding to this browser. Note that this
+ // method only returns a valid target after browser has been initialized on
+ // the main thread. The target only supports the domains available on the
+ // browser endpoint excluding the Tethering domain.
+ virtual HeadlessDevToolsTarget* GetDevToolsTarget() = 0;
+
// Returns the HeadlessWebContents associated with the
// |devtools_agent_host_id| if any. Otherwise returns null.
virtual HeadlessWebContents* GetWebContentsForDevToolsAgentHostId(
« no previous file with comments | « headless/lib/headless_browser_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698