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

Side by Side Diff: net/url_request/url_request_context_storage.h

Issue 10831277: [net] Change factory methods for HostResolver and HostCache to return a scoped_ptr (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unnecessary initialization; respond to review Created 8 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_
6 #define NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 23 matching lines...) Expand all
34 // member variables of URLRequestContext. 34 // member variables of URLRequestContext.
35 class NET_EXPORT URLRequestContextStorage { 35 class NET_EXPORT URLRequestContextStorage {
36 public: 36 public:
37 // Note that URLRequestContextStorage does not acquire a reference to 37 // Note that URLRequestContextStorage does not acquire a reference to
38 // URLRequestContext, since it is often designed to be embedded in a 38 // URLRequestContext, since it is often designed to be embedded in a
39 // URLRequestContext subclass. 39 // URLRequestContext subclass.
40 explicit URLRequestContextStorage(URLRequestContext* context); 40 explicit URLRequestContextStorage(URLRequestContext* context);
41 ~URLRequestContextStorage(); 41 ~URLRequestContextStorage();
42 42
43 // These setters will set both the member variables and call the setter on the 43 // These setters will set both the member variables and call the setter on the
44 // URLRequestContext object. 44 // URLRequestContext object. In all cases, ownership is passed to |this|.
45 45
46 void set_net_log(NetLog* net_log); 46 void set_net_log(NetLog* net_log);
47 void set_host_resolver(HostResolver* host_resolver); 47 void set_host_resolver(scoped_ptr<HostResolver> host_resolver);
48 void set_cert_verifier(CertVerifier* cert_verifier); 48 void set_cert_verifier(CertVerifier* cert_verifier);
49 void set_server_bound_cert_service( 49 void set_server_bound_cert_service(
50 ServerBoundCertService* server_bound_cert_service); 50 ServerBoundCertService* server_bound_cert_service);
51 void set_fraudulent_certificate_reporter( 51 void set_fraudulent_certificate_reporter(
52 FraudulentCertificateReporter* fraudulent_certificate_reporter); 52 FraudulentCertificateReporter* fraudulent_certificate_reporter);
53 void set_http_auth_handler_factory( 53 void set_http_auth_handler_factory(
54 HttpAuthHandlerFactory* http_auth_handler_factory); 54 HttpAuthHandlerFactory* http_auth_handler_factory);
55 void set_proxy_service(ProxyService* proxy_service); 55 void set_proxy_service(ProxyService* proxy_service);
56 void set_ssl_config_service(SSLConfigService* ssl_config_service); 56 void set_ssl_config_service(SSLConfigService* ssl_config_service);
57 void set_network_delegate(NetworkDelegate* network_delegate); 57 void set_network_delegate(NetworkDelegate* network_delegate);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 scoped_ptr<FtpTransactionFactory> ftp_transaction_factory_; 91 scoped_ptr<FtpTransactionFactory> ftp_transaction_factory_;
92 scoped_ptr<URLRequestJobFactory> job_factory_; 92 scoped_ptr<URLRequestJobFactory> job_factory_;
93 scoped_ptr<URLRequestThrottlerManager> throttler_manager_; 93 scoped_ptr<URLRequestThrottlerManager> throttler_manager_;
94 94
95 DISALLOW_COPY_AND_ASSIGN(URLRequestContextStorage); 95 DISALLOW_COPY_AND_ASSIGN(URLRequestContextStorage);
96 }; 96 };
97 97
98 } // namespace net 98 } // namespace net
99 99
100 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_ 100 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_context_builder.cc ('k') | net/url_request/url_request_context_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698