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

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

Issue 7033036: net: Add NET_API to url_request. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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
« no previous file with comments | « net/url_request/url_request_context.h ('k') | net/url_request/url_request_job.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "net/base/net_api.h"
12 13
13 namespace net { 14 namespace net {
14 15
15 class CertVerifier; 16 class CertVerifier;
16 class CookieStore; 17 class CookieStore;
17 class DnsCertProvenanceChecker; 18 class DnsCertProvenanceChecker;
18 class DnsRRResolver; 19 class DnsRRResolver;
19 class FtpTransactionFactory; 20 class FtpTransactionFactory;
20 class HostResolver; 21 class HostResolver;
21 class HttpAuthHandlerFactory; 22 class HttpAuthHandlerFactory;
22 class HttpTransactionFactory; 23 class HttpTransactionFactory;
23 class NetLog; 24 class NetLog;
24 class NetworkDelegate; 25 class NetworkDelegate;
25 class ProxyService; 26 class ProxyService;
26 class SSLConfigService; 27 class SSLConfigService;
27 class TransportSecurityState; 28 class TransportSecurityState;
28 class URLRequestContext; 29 class URLRequestContext;
29 class URLRequestJobFactory; 30 class URLRequestJobFactory;
30 31
31 // URLRequestContextStorage is a helper class that provides storage for unowned 32 // URLRequestContextStorage is a helper class that provides storage for unowned
32 // member variables of URLRequestContext. 33 // member variables of URLRequestContext.
33 class URLRequestContextStorage { 34 class NET_API URLRequestContextStorage {
34 public: 35 public:
35 // Note that URLRequestContextStorage does not acquire a reference to 36 // Note that URLRequestContextStorage does not acquire a reference to
36 // URLRequestContext, since it is often designed to be embedded in a 37 // URLRequestContext, since it is often designed to be embedded in a
37 // URLRequestContext subclass. 38 // URLRequestContext subclass.
38 explicit URLRequestContextStorage(URLRequestContext* context); 39 explicit URLRequestContextStorage(URLRequestContext* context);
39 ~URLRequestContextStorage(); 40 ~URLRequestContextStorage();
40 41
41 // These setters will set both the member variables and call the setter on the 42 // These setters will set both the member variables and call the setter on the
42 // URLRequestContext object. 43 // URLRequestContext object.
43 44
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 scoped_ptr<HttpTransactionFactory> http_transaction_factory_; 84 scoped_ptr<HttpTransactionFactory> http_transaction_factory_;
84 scoped_ptr<FtpTransactionFactory> ftp_transaction_factory_; 85 scoped_ptr<FtpTransactionFactory> ftp_transaction_factory_;
85 scoped_ptr<URLRequestJobFactory> job_factory_; 86 scoped_ptr<URLRequestJobFactory> job_factory_;
86 87
87 DISALLOW_COPY_AND_ASSIGN(URLRequestContextStorage); 88 DISALLOW_COPY_AND_ASSIGN(URLRequestContextStorage);
88 }; 89 };
89 90
90 } // namespace net 91 } // namespace net
91 92
92 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_ 93 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_context.h ('k') | net/url_request/url_request_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698