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 EXTENSIONS_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_ | 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_ |
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_ | 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 class InfoMap; | 24 class InfoMap; |
25 | 25 |
26 class ShellURLRequestContextGetter | 26 class ShellURLRequestContextGetter |
27 : public content::ShellURLRequestContextGetter { | 27 : public content::ShellURLRequestContextGetter { |
28 public: | 28 public: |
29 ShellURLRequestContextGetter( | 29 ShellURLRequestContextGetter( |
30 content::BrowserContext* browser_context, | 30 content::BrowserContext* browser_context, |
31 bool ignore_certificate_errors, | 31 bool ignore_certificate_errors, |
32 const base::FilePath& base_path, | 32 const base::FilePath& base_path, |
33 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, | 33 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, |
34 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner, | |
35 content::ProtocolHandlerMap* protocol_handlers, | 34 content::ProtocolHandlerMap* protocol_handlers, |
36 content::URLRequestInterceptorScopedVector request_interceptors, | 35 content::URLRequestInterceptorScopedVector request_interceptors, |
37 net::NetLog* net_log, | 36 net::NetLog* net_log, |
38 InfoMap* extension_info_map); | 37 InfoMap* extension_info_map); |
39 | 38 |
40 // content::ShellURLRequestContextGetter implementation. | 39 // content::ShellURLRequestContextGetter implementation. |
41 std::unique_ptr<net::NetworkDelegate> CreateNetworkDelegate() override; | 40 std::unique_ptr<net::NetworkDelegate> CreateNetworkDelegate() override; |
42 | 41 |
43 protected: | 42 protected: |
44 ~ShellURLRequestContextGetter() override; | 43 ~ShellURLRequestContextGetter() override; |
45 | 44 |
46 private: | 45 private: |
47 content::BrowserContext* browser_context_; | 46 content::BrowserContext* browser_context_; |
48 InfoMap* extension_info_map_; | 47 InfoMap* extension_info_map_; |
49 | 48 |
50 private: | 49 private: |
51 DISALLOW_COPY_AND_ASSIGN(ShellURLRequestContextGetter); | 50 DISALLOW_COPY_AND_ASSIGN(ShellURLRequestContextGetter); |
52 }; | 51 }; |
53 | 52 |
54 } // namespace extensions | 53 } // namespace extensions |
55 | 54 |
56 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_ | 55 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_ |
OLD | NEW |