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

Side by Side Diff: headless/lib/browser/headless_url_request_context_getter.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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_URL_REQUEST_CONTEXT_GETTER_H_ 5 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_URL_REQUEST_CONTEXT_GETTER_H_
6 #define HEADLESS_LIB_BROWSER_HEADLESS_URL_REQUEST_CONTEXT_GETTER_H_ 6 #define HEADLESS_LIB_BROWSER_HEADLESS_URL_REQUEST_CONTEXT_GETTER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 22 matching lines...) Expand all
33 } 33 }
34 34
35 namespace headless { 35 namespace headless {
36 36
37 class HeadlessURLRequestContextGetter : public net::URLRequestContextGetter { 37 class HeadlessURLRequestContextGetter : public net::URLRequestContextGetter {
38 public: 38 public:
39 HeadlessURLRequestContextGetter( 39 HeadlessURLRequestContextGetter(
40 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, 40 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
41 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner, 41 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner,
42 content::ProtocolHandlerMap* protocol_handlers, 42 content::ProtocolHandlerMap* protocol_handlers,
43 ProtocolHandlerMap context_protocol_handlers,
43 content::URLRequestInterceptorScopedVector request_interceptors, 44 content::URLRequestInterceptorScopedVector request_interceptors,
44 HeadlessBrowser::Options* options); 45 HeadlessBrowser::Options* options);
45 46
46 // net::URLRequestContextGetter implementation: 47 // net::URLRequestContextGetter implementation:
47 net::URLRequestContext* GetURLRequestContext() override; 48 net::URLRequestContext* GetURLRequestContext() override;
48 scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner() 49 scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner()
49 const override; 50 const override;
50 51
51 net::HostResolver* host_resolver() const; 52 net::HostResolver* host_resolver() const;
52 53
(...skipping 15 matching lines...) Expand all
68 std::unique_ptr<net::URLRequestContext> url_request_context_; 69 std::unique_ptr<net::URLRequestContext> url_request_context_;
69 content::ProtocolHandlerMap protocol_handlers_; 70 content::ProtocolHandlerMap protocol_handlers_;
70 content::URLRequestInterceptorScopedVector request_interceptors_; 71 content::URLRequestInterceptorScopedVector request_interceptors_;
71 72
72 DISALLOW_COPY_AND_ASSIGN(HeadlessURLRequestContextGetter); 73 DISALLOW_COPY_AND_ASSIGN(HeadlessURLRequestContextGetter);
73 }; 74 };
74 75
75 } // namespace headless 76 } // namespace headless
76 77
77 #endif // HEADLESS_LIB_BROWSER_HEADLESS_URL_REQUEST_CONTEXT_GETTER_H_ 78 #endif // HEADLESS_LIB_BROWSER_HEADLESS_URL_REQUEST_CONTEXT_GETTER_H_
OLDNEW
« no previous file with comments | « headless/lib/browser/headless_browser_main_parts.cc ('k') | headless/lib/browser/headless_url_request_context_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698