| 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_ |
| 11 #define NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ | 11 #define NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ |
| 12 #pragma once | 12 #pragma once |
| 13 | 13 |
| 14 #include "base/non_thread_safe.h" | 14 #include "base/non_thread_safe.h" |
| 15 #include "base/ref_counted.h" | 15 #include "base/ref_counted.h" |
| 16 #include "net/base/cookie_store.h" | 16 #include "net/base/cookie_store.h" |
| 17 #include "net/base/host_resolver.h" | 17 #include "net/base/host_resolver.h" |
| 18 #include "net/base/net_log.h" | 18 #include "net/base/net_log.h" |
| 19 #include "net/base/ssl_config_service.h" | 19 #include "net/base/ssl_config_service.h" |
| 20 #include "net/base/transport_security_state.h" | 20 #include "net/base/transport_security_state.h" |
| 21 #include "net/ftp/ftp_auth_cache.h" | 21 #include "net/ftp/ftp_auth_cache.h" |
| 22 #include "net/proxy/proxy_service.h" | 22 #include "net/proxy/proxy_service.h" |
| 23 | 23 |
| 24 namespace net { | 24 namespace net { |
| 25 class CookiePolicy; | 25 class CookiePolicy; |
| 26 class FtpTransactionFactory; | 26 class FtpTransactionFactory; |
| 27 class HttpAuthHandlerFactory; | 27 class HttpAuthHandlerFactory; |
| 28 class HttpNetworkDelegate; | 28 class HttpNetworkDelegate; |
| 29 class HttpTransactionFactory; | 29 class HttpTransactionFactory; |
| 30 class SocketStream; | |
| 31 } | 30 } |
| 32 class URLRequest; | 31 class URLRequest; |
| 33 | 32 |
| 34 // Subclass to provide application-specific context for URLRequest instances. | 33 // Subclass to provide application-specific context for URLRequest instances. |
| 35 class URLRequestContext | 34 class URLRequestContext |
| 36 : public base::RefCountedThreadSafe<URLRequestContext>, | 35 : public base::RefCountedThreadSafe<URLRequestContext>, |
| 37 public NonThreadSafe { | 36 public NonThreadSafe { |
| 38 public: | 37 public: |
| 39 URLRequestContext() | 38 URLRequestContext() |
| 40 : net_log_(NULL), | 39 : net_log_(NULL), |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 // The charset of the referrer where this request comes from. It's not | 135 // The charset of the referrer where this request comes from. It's not |
| 137 // used in communication with a server but is used to construct a suggested | 136 // used in communication with a server but is used to construct a suggested |
| 138 // filename for file download. | 137 // filename for file download. |
| 139 std::string referrer_charset_; | 138 std::string referrer_charset_; |
| 140 | 139 |
| 141 private: | 140 private: |
| 142 DISALLOW_COPY_AND_ASSIGN(URLRequestContext); | 141 DISALLOW_COPY_AND_ASSIGN(URLRequestContext); |
| 143 }; | 142 }; |
| 144 | 143 |
| 145 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ | 144 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ |
| OLD | NEW |