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; |