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

Unified Diff: headless/public/headless_browser.h

Issue 2626823003: [headless] Add default browser context to HeadlessBrowser. (Closed)
Patch Set: More explicit error message. Created 3 years, 11 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/browser/headless_devtools_manager_delegate.cc ('k') | headless/test/headless_browser_test.cc » ('j') | 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 021e91064fbc4e099945b7cc782d1b430afc5a7a..c3043f006ad40216b6313cac3bfbd416898492e1 100644
--- a/headless/public/headless_browser.h
+++ b/headless/public/headless_browser.h
@@ -56,6 +56,12 @@ class HEADLESS_EXPORT HeadlessBrowser {
virtual HeadlessBrowserContext* GetBrowserContextForId(
const std::string& id) = 0;
+ // Allows setting and getting the browser context that DevTools will create
+ // new targets in by default.
+ virtual void SetDefaultBrowserContext(
+ HeadlessBrowserContext* browser_context) = 0;
+ virtual HeadlessBrowserContext* GetDefaultBrowserContext() = 0;
+
// Returns a task runner for submitting work to the browser file thread.
virtual scoped_refptr<base::SingleThreadTaskRunner> BrowserFileThread()
const = 0;
« no previous file with comments | « headless/lib/browser/headless_devtools_manager_delegate.cc ('k') | headless/test/headless_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698