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

Side by Side Diff: content/shell/browser/shell_url_request_context_getter.h

Issue 2946343003: Remove more instances of BrowserThread::FILE. (Closed)
Patch Set: this time with feeling Created 3 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 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
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).
38 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner,
39 ProtocolHandlerMap* protocol_handlers, 37 ProtocolHandlerMap* protocol_handlers,
40 URLRequestInterceptorScopedVector request_interceptors, 38 URLRequestInterceptorScopedVector request_interceptors,
41 net::NetLog* net_log); 39 net::NetLog* net_log);
42 40
43 // net::URLRequestContextGetter implementation. 41 // net::URLRequestContextGetter implementation.
44 net::URLRequestContext* GetURLRequestContext() override; 42 net::URLRequestContext* GetURLRequestContext() override;
45 scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner() 43 scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner()
46 const override; 44 const override;
47 45
48 net::HostResolver* host_resolver(); 46 net::HostResolver* host_resolver();
49 47
50 protected: 48 protected:
51 ~ShellURLRequestContextGetter() override; 49 ~ShellURLRequestContextGetter() override;
52 50
53 // Used by subclasses to create their own implementation of NetworkDelegate 51 // Used by subclasses to create their own implementation of NetworkDelegate
54 // and net::ProxyService. 52 // and net::ProxyService.
55 virtual std::unique_ptr<net::NetworkDelegate> CreateNetworkDelegate(); 53 virtual std::unique_ptr<net::NetworkDelegate> CreateNetworkDelegate();
56 virtual std::unique_ptr<net::ProxyConfigService> GetProxyConfigService(); 54 virtual std::unique_ptr<net::ProxyConfigService> GetProxyConfigService();
57 virtual std::unique_ptr<net::ProxyService> GetProxyService(); 55 virtual std::unique_ptr<net::ProxyService> GetProxyService();
58 56
59 private: 57 private:
60 bool ignore_certificate_errors_; 58 bool ignore_certificate_errors_;
61 base::FilePath base_path_; 59 base::FilePath base_path_;
62 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; 60 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
63 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_;
64 net::NetLog* net_log_; 61 net::NetLog* net_log_;
65 62
66 std::unique_ptr<net::ProxyConfigService> proxy_config_service_; 63 std::unique_ptr<net::ProxyConfigService> proxy_config_service_;
67 std::unique_ptr<net::NetworkDelegate> network_delegate_; 64 std::unique_ptr<net::NetworkDelegate> network_delegate_;
68 std::unique_ptr<net::URLRequestContextStorage> storage_; 65 std::unique_ptr<net::URLRequestContextStorage> storage_;
69 std::unique_ptr<net::URLRequestContext> url_request_context_; 66 std::unique_ptr<net::URLRequestContext> url_request_context_;
70 ProtocolHandlerMap protocol_handlers_; 67 ProtocolHandlerMap protocol_handlers_;
71 URLRequestInterceptorScopedVector request_interceptors_; 68 URLRequestInterceptorScopedVector request_interceptors_;
72 69
73 DISALLOW_COPY_AND_ASSIGN(ShellURLRequestContextGetter); 70 DISALLOW_COPY_AND_ASSIGN(ShellURLRequestContextGetter);
74 }; 71 };
75 72
76 } // namespace content 73 } // namespace content
77 74
78 #endif // CONTENT_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_ 75 #endif // CONTENT_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_
OLDNEW
« no previous file with comments | « content/shell/browser/shell_browser_context.cc ('k') | content/shell/browser/shell_url_request_context_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698