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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 protected: | 53 protected: |
54 ~ShellURLRequestContextGetter() override; | 54 ~ShellURLRequestContextGetter() override; |
55 | 55 |
56 // Used by subclasses to create their own implementation of NetworkDelegate | 56 // Used by subclasses to create their own implementation of NetworkDelegate |
57 // and net::ProxyService. | 57 // and net::ProxyService. |
58 virtual std::unique_ptr<net::NetworkDelegate> CreateNetworkDelegate(); | 58 virtual std::unique_ptr<net::NetworkDelegate> CreateNetworkDelegate(); |
59 virtual std::unique_ptr<net::ProxyConfigService> GetProxyConfigService(); | 59 virtual std::unique_ptr<net::ProxyConfigService> GetProxyConfigService(); |
60 virtual std::unique_ptr<net::ProxyService> GetProxyService(); | 60 virtual std::unique_ptr<net::ProxyService> GetProxyService(); |
61 | 61 |
| 62 // TODO(estark): Remove this once the Referrer-Policy header is no |
| 63 // longer an experimental feature. https://crbug.com/619228 |
| 64 virtual bool ShouldEnableReferrerPolicyHeader(); |
| 65 |
62 private: | 66 private: |
63 bool ignore_certificate_errors_; | 67 bool ignore_certificate_errors_; |
64 base::FilePath base_path_; | 68 base::FilePath base_path_; |
65 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; | 69 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; |
66 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_; | 70 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_; |
67 net::NetLog* net_log_; | 71 net::NetLog* net_log_; |
68 | 72 |
69 std::unique_ptr<net::ProxyConfigService> proxy_config_service_; | 73 std::unique_ptr<net::ProxyConfigService> proxy_config_service_; |
70 std::unique_ptr<net::NetworkDelegate> network_delegate_; | 74 std::unique_ptr<net::NetworkDelegate> network_delegate_; |
71 std::unique_ptr<net::URLRequestContextStorage> storage_; | 75 std::unique_ptr<net::URLRequestContextStorage> storage_; |
72 std::unique_ptr<net::URLRequestContext> url_request_context_; | 76 std::unique_ptr<net::URLRequestContext> url_request_context_; |
73 ProtocolHandlerMap protocol_handlers_; | 77 ProtocolHandlerMap protocol_handlers_; |
74 URLRequestInterceptorScopedVector request_interceptors_; | 78 URLRequestInterceptorScopedVector request_interceptors_; |
75 | 79 |
76 DISALLOW_COPY_AND_ASSIGN(ShellURLRequestContextGetter); | 80 DISALLOW_COPY_AND_ASSIGN(ShellURLRequestContextGetter); |
77 }; | 81 }; |
78 | 82 |
79 } // namespace content | 83 } // namespace content |
80 | 84 |
81 #endif // CONTENT_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_ | 85 #endif // CONTENT_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_ |
OLD | NEW |