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

Unified Diff: headless/public/headless_browser.h

Issue 2223193003: Add an accessor to HeadlessBrowser for the IO thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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_browser_impl.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 6c7dfe4cefa607c2eca9c8c6054ec5c37dea9871..954b79e0db4609324864c8ef209bbf7db28be0d8 100644
--- a/headless/public/headless_browser.h
+++ b/headless/public/headless_browser.h
@@ -55,14 +55,18 @@ class HEADLESS_EXPORT HeadlessBrowser {
virtual HeadlessBrowserContext* GetBrowserContextForId(
const std::string& id) = 0;
- // Returns a task runner for submitting work to the browser main thread.
- virtual scoped_refptr<base::SingleThreadTaskRunner> BrowserMainThread()
- const = 0;
-
// Returns a task runner for submitting work to the browser file thread.
virtual scoped_refptr<base::SingleThreadTaskRunner> BrowserFileThread()
const = 0;
+ // Returns a task runner for submitting work to the browser io thread.
+ virtual scoped_refptr<base::SingleThreadTaskRunner> BrowserIOThread()
+ const = 0;
+
+ // Returns a task runner for submitting work to the browser main thread.
+ virtual scoped_refptr<base::SingleThreadTaskRunner> BrowserMainThread()
+ const = 0;
+
// Requests browser to stop as soon as possible. |Run| will return as soon as
// browser stops.
// IMPORTANT: All pointers to HeadlessBrowserContexts and HeadlessWebContents
« no previous file with comments | « headless/lib/browser/headless_browser_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698