OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_ | 5 #ifndef CONTENT_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_ |
6 #define CONTENT_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_ | 6 #define CONTENT_SHELL_BROWSER_SHELL_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 16 matching lines...) Expand all Loading... |
27 } | 27 } |
28 | 28 |
29 namespace content { | 29 namespace content { |
30 | 30 |
31 class ShellURLRequestContextGetter : public net::URLRequestContextGetter { | 31 class ShellURLRequestContextGetter : public net::URLRequestContextGetter { |
32 public: | 32 public: |
33 ShellURLRequestContextGetter( | 33 ShellURLRequestContextGetter( |
34 bool ignore_certificate_errors, | 34 bool ignore_certificate_errors, |
35 const base::FilePath& base_path, | 35 const base::FilePath& base_path, |
36 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, | 36 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, |
| 37 // TODO(eroman): Remove the file_task_runner parameter (unused). |
37 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner, | 38 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner, |
38 ProtocolHandlerMap* protocol_handlers, | 39 ProtocolHandlerMap* protocol_handlers, |
39 URLRequestInterceptorScopedVector request_interceptors, | 40 URLRequestInterceptorScopedVector request_interceptors, |
40 net::NetLog* net_log); | 41 net::NetLog* net_log); |
41 | 42 |
42 // net::URLRequestContextGetter implementation. | 43 // net::URLRequestContextGetter implementation. |
43 net::URLRequestContext* GetURLRequestContext() override; | 44 net::URLRequestContext* GetURLRequestContext() override; |
44 scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner() | 45 scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner() |
45 const override; | 46 const override; |
46 | 47 |
(...skipping 21 matching lines...) Expand all Loading... |
68 std::unique_ptr<net::URLRequestContext> url_request_context_; | 69 std::unique_ptr<net::URLRequestContext> url_request_context_; |
69 ProtocolHandlerMap protocol_handlers_; | 70 ProtocolHandlerMap protocol_handlers_; |
70 URLRequestInterceptorScopedVector request_interceptors_; | 71 URLRequestInterceptorScopedVector request_interceptors_; |
71 | 72 |
72 DISALLOW_COPY_AND_ASSIGN(ShellURLRequestContextGetter); | 73 DISALLOW_COPY_AND_ASSIGN(ShellURLRequestContextGetter); |
73 }; | 74 }; |
74 | 75 |
75 } // namespace content | 76 } // namespace content |
76 | 77 |
77 #endif // CONTENT_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_ | 78 #endif // CONTENT_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_ |
OLD | NEW |