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

Unified Diff: headless/public/headless_browser.h

Issue 2119063002: Add commands to manage tabs and contexts to Browser Domain (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix name Created 4 years, 5 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.h
diff --git a/headless/public/headless_browser.h b/headless/public/headless_browser.h
index 2e9145153aecb42a4f126481436003fb8e0a6cbe..b98a40acd866820ba10df3fff87d1adaf9ec95f7 100644
--- a/headless/public/headless_browser.h
+++ b/headless/public/headless_browser.h
@@ -48,6 +48,11 @@ class HEADLESS_EXPORT HeadlessBrowser {
virtual std::vector<HeadlessWebContents*> GetAllWebContents() = 0;
+ // Returns the HeadlessWebContents associated with the
+ // |devtools_agent_host_id| if any. Otherwise returns null.
+ virtual HeadlessWebContents* GetWebContentsForDevtoolsAgentHostId(
+ const std::string& devtools_agent_host_id) = 0;
+
// Returns a task runner for submitting work to the browser main thread.
virtual scoped_refptr<base::SingleThreadTaskRunner> BrowserMainThread()
const = 0;

Powered by Google App Engine
This is Rietveld 408576698