OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |