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

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

Issue 5384002: net: Remove typedef net::URLRequest URLRequest; (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // This class represents contextual information (cookies, cache, etc.) 5 // This class represents contextual information (cookies, cache, etc.)
6 // that's useful when processing resource requests. 6 // that's useful when processing resource requests.
7 // The class is reference-counted so that it can be cleaned up after any 7 // The class is reference-counted so that it can be cleaned up after any
8 // requests that are using it have been completed. 8 // requests that are using it have been completed.
9 9
10 #ifndef NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ 10 #ifndef NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_
(...skipping 16 matching lines...) Expand all
27 class DnsRRResolver; 27 class DnsRRResolver;
28 class FtpTransactionFactory; 28 class FtpTransactionFactory;
29 class HostResolver; 29 class HostResolver;
30 class HttpAuthHandlerFactory; 30 class HttpAuthHandlerFactory;
31 class HttpNetworkDelegate; 31 class HttpNetworkDelegate;
32 class HttpTransactionFactory; 32 class HttpTransactionFactory;
33 class SSLConfigService; 33 class SSLConfigService;
34 class URLRequest; 34 class URLRequest;
35 } // namespace net 35 } // namespace net
36 36
37 // Subclass to provide application-specific context for URLRequest instances. 37 // Subclass to provide application-specific context for net::URLRequest
38 // instances.
38 class URLRequestContext 39 class URLRequestContext
39 : public base::RefCountedThreadSafe<URLRequestContext>, 40 : public base::RefCountedThreadSafe<URLRequestContext>,
40 public NonThreadSafe { 41 public NonThreadSafe {
41 public: 42 public:
42 URLRequestContext(); 43 URLRequestContext();
43 44
44 net::NetLog* net_log() const { 45 net::NetLog* net_log() const {
45 return net_log_; 46 return net_log_;
46 } 47 }
47 48
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 std::string referrer_charset_; 150 std::string referrer_charset_;
150 151
151 private: 152 private:
152 // Indicates whether or not this is the main URLRequestContext. 153 // Indicates whether or not this is the main URLRequestContext.
153 bool is_main_; 154 bool is_main_;
154 155
155 DISALLOW_COPY_AND_ASSIGN(URLRequestContext); 156 DISALLOW_COPY_AND_ASSIGN(URLRequestContext);
156 }; 157 };
157 158
158 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ 159 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698