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

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

Issue 1290243007: Shift URLRequestContextStorage over to taking scoped_ptrs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Paul_BuilderGrab
Patch Set: Sync'd to revision p349162. Created 5 years, 3 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 "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner() 46 scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner()
47 const override; 47 const override;
48 48
49 net::HostResolver* host_resolver(); 49 net::HostResolver* host_resolver();
50 50
51 protected: 51 protected:
52 ~ShellURLRequestContextGetter() override; 52 ~ShellURLRequestContextGetter() override;
53 53
54 // Used by subclasses to create their own implementation of NetworkDelegate 54 // Used by subclasses to create their own implementation of NetworkDelegate
55 // and net::ProxyService. 55 // and net::ProxyService.
56 virtual net::NetworkDelegate* CreateNetworkDelegate(); 56 virtual scoped_ptr<net::NetworkDelegate> CreateNetworkDelegate();
57 virtual net::ProxyConfigService* GetProxyConfigService(); 57 virtual scoped_ptr<net::ProxyConfigService> GetProxyConfigService();
58 virtual net::ProxyService* GetProxyService(); 58 virtual scoped_ptr<net::ProxyService> GetProxyService();
59 59
60 private: 60 private:
61 bool ignore_certificate_errors_; 61 bool ignore_certificate_errors_;
62 base::FilePath base_path_; 62 base::FilePath base_path_;
63 base::MessageLoop* io_loop_; 63 base::MessageLoop* io_loop_;
64 base::MessageLoop* file_loop_; 64 base::MessageLoop* file_loop_;
65 net::NetLog* net_log_; 65 net::NetLog* net_log_;
66 66
67 scoped_ptr<net::ProxyConfigService> proxy_config_service_; 67 scoped_ptr<net::ProxyConfigService> proxy_config_service_;
68 scoped_ptr<net::NetworkDelegate> network_delegate_; 68 scoped_ptr<net::NetworkDelegate> network_delegate_;
69 scoped_ptr<net::URLRequestContextStorage> storage_; 69 scoped_ptr<net::URLRequestContextStorage> storage_;
70 scoped_ptr<net::URLRequestContext> url_request_context_; 70 scoped_ptr<net::URLRequestContext> url_request_context_;
71 ProtocolHandlerMap protocol_handlers_; 71 ProtocolHandlerMap protocol_handlers_;
72 URLRequestInterceptorScopedVector request_interceptors_; 72 URLRequestInterceptorScopedVector request_interceptors_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(ShellURLRequestContextGetter); 74 DISALLOW_COPY_AND_ASSIGN(ShellURLRequestContextGetter);
75 }; 75 };
76 76
77 } // namespace content 77 } // namespace content
78 78
79 #endif // CONTENT_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_ 79 #endif // CONTENT_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698