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_LAYOUT_TEST_LAYOUT_TEST_URL_REQUEST_CONTEXT_GETTER
_H_ | 5 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_URL_REQUEST_CONTEXT_GETTER
_H_ |
6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_URL_REQUEST_CONTEXT_GETTER
_H_ | 6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_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 12 matching lines...) Expand all Loading... |
23 } | 23 } |
24 | 24 |
25 namespace content { | 25 namespace content { |
26 | 26 |
27 class LayoutTestURLRequestContextGetter : public ShellURLRequestContextGetter { | 27 class LayoutTestURLRequestContextGetter : public ShellURLRequestContextGetter { |
28 public: | 28 public: |
29 LayoutTestURLRequestContextGetter( | 29 LayoutTestURLRequestContextGetter( |
30 bool ignore_certificate_errors, | 30 bool ignore_certificate_errors, |
31 const base::FilePath& base_path, | 31 const base::FilePath& base_path, |
32 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, | 32 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, |
33 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner, | |
34 ProtocolHandlerMap* protocol_handlers, | 33 ProtocolHandlerMap* protocol_handlers, |
35 URLRequestInterceptorScopedVector request_interceptors, | 34 URLRequestInterceptorScopedVector request_interceptors, |
36 net::NetLog* net_log); | 35 net::NetLog* net_log); |
37 | 36 |
38 protected: | 37 protected: |
39 ~LayoutTestURLRequestContextGetter() override; | 38 ~LayoutTestURLRequestContextGetter() override; |
40 | 39 |
41 // ShellURLRequestContextGetter implementation. | 40 // ShellURLRequestContextGetter implementation. |
42 std::unique_ptr<net::NetworkDelegate> CreateNetworkDelegate() override; | 41 std::unique_ptr<net::NetworkDelegate> CreateNetworkDelegate() override; |
43 std::unique_ptr<net::ProxyConfigService> GetProxyConfigService() override; | 42 std::unique_ptr<net::ProxyConfigService> GetProxyConfigService() override; |
44 std::unique_ptr<net::ProxyService> GetProxyService() override; | 43 std::unique_ptr<net::ProxyService> GetProxyService() override; |
45 | 44 |
46 private: | 45 private: |
47 DISALLOW_COPY_AND_ASSIGN(LayoutTestURLRequestContextGetter); | 46 DISALLOW_COPY_AND_ASSIGN(LayoutTestURLRequestContextGetter); |
48 }; | 47 }; |
49 | 48 |
50 } // namespace content | 49 } // namespace content |
51 | 50 |
52 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_URL_REQUEST_CONTEXT_GET
TER_H_ | 51 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_URL_REQUEST_CONTEXT_GET
TER_H_ |
OLD | NEW |