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

Unified Diff: headless/lib/browser/headless_browser_context_impl.h

Issue 2092773002: headless: Allow per-context protocol handlers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed comments Created 4 years, 6 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/BUILD.gn ('k') | headless/lib/browser/headless_browser_context_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/lib/browser/headless_browser_context_impl.h
diff --git a/headless/lib/browser/headless_browser_context_impl.h b/headless/lib/browser/headless_browser_context_impl.h
index e5d82d32f935675d01910f8972aed6fc5826fcda..fae8f8a86334d1d0af05333ac7814af2491241e1 100644
--- a/headless/lib/browser/headless_browser_context_impl.h
+++ b/headless/lib/browser/headless_browser_context_impl.h
@@ -21,7 +21,8 @@ class HeadlessResourceContext;
class HeadlessBrowserContextImpl : public HeadlessBrowserContext,
public content::BrowserContext {
public:
- explicit HeadlessBrowserContextImpl(HeadlessBrowser::Options* options);
+ explicit HeadlessBrowserContextImpl(ProtocolHandlerMap protocol_handlers,
+ HeadlessBrowser::Options* options);
~HeadlessBrowserContextImpl() override;
static HeadlessBrowserContextImpl* From(
@@ -61,9 +62,10 @@ class HeadlessBrowserContextImpl : public HeadlessBrowserContext,
// allowed on the current thread.
void InitWhileIOAllowed();
- base::FilePath path_;
- std::unique_ptr<HeadlessResourceContext> resource_context_;
+ ProtocolHandlerMap protocol_handlers_;
HeadlessBrowser::Options* options_; // Not owned.
+ std::unique_ptr<HeadlessResourceContext> resource_context_;
+ base::FilePath path_;
DISALLOW_COPY_AND_ASSIGN(HeadlessBrowserContextImpl);
};
« no previous file with comments | « headless/BUILD.gn ('k') | headless/lib/browser/headless_browser_context_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698