| 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 13 matching lines...) Expand all Loading... |
| 24 class CookiePolicy; | 24 class CookiePolicy; |
| 25 class CookieStore; | 25 class CookieStore; |
| 26 class DnsCertProvenanceChecker; | 26 class DnsCertProvenanceChecker; |
| 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 } | |
| 35 class URLRequest; | 34 class URLRequest; |
| 35 } // namespace net |
| 36 | 36 |
| 37 // Subclass to provide application-specific context for URLRequest instances. | 37 // Subclass to provide application-specific context for URLRequest instances. |
| 38 class URLRequestContext | 38 class URLRequestContext |
| 39 : public base::RefCountedThreadSafe<URLRequestContext>, | 39 : public base::RefCountedThreadSafe<URLRequestContext>, |
| 40 public NonThreadSafe { | 40 public NonThreadSafe { |
| 41 public: | 41 public: |
| 42 URLRequestContext(); | 42 URLRequestContext(); |
| 43 | 43 |
| 44 net::NetLog* net_log() const { | 44 net::NetLog* net_log() const { |
| 45 return net_log_; | 45 return net_log_; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 std::string referrer_charset_; | 149 std::string referrer_charset_; |
| 150 | 150 |
| 151 private: | 151 private: |
| 152 // Indicates whether or not this is the main URLRequestContext. | 152 // Indicates whether or not this is the main URLRequestContext. |
| 153 bool is_main_; | 153 bool is_main_; |
| 154 | 154 |
| 155 DISALLOW_COPY_AND_ASSIGN(URLRequestContext); | 155 DISALLOW_COPY_AND_ASSIGN(URLRequestContext); |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ | 158 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ |
| OLD | NEW |