| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_HTTP_HTTP_NETWORK_LAYER_H_ | 5 #ifndef NET_HTTP_HTTP_NETWORK_LAYER_H_ |
| 6 #define NET_HTTP_HTTP_NETWORK_LAYER_H_ | 6 #define NET_HTTP_HTTP_NETWORK_LAYER_H_ |
| 7 | 7 |
| 8 #include "base/ref_counted.h" | 8 #include "base/ref_counted.h" |
| 9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 10 #include "net/http/http_transaction_factory.h" | 10 #include "net/http/http_transaction_factory.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 virtual HttpTransaction* CreateTransaction(); | 44 virtual HttpTransaction* CreateTransaction(); |
| 45 virtual HttpCache* GetCache(); | 45 virtual HttpCache* GetCache(); |
| 46 virtual void Suspend(bool suspend); | 46 virtual void Suspend(bool suspend); |
| 47 | 47 |
| 48 HttpNetworkSession* GetSession(); | 48 HttpNetworkSession* GetSession(); |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 // The factory we will use to create network sockets. | 51 // The factory we will use to create network sockets. |
| 52 ClientSocketFactory* socket_factory_; | 52 ClientSocketFactory* socket_factory_; |
| 53 | 53 |
| 54 // The host resolver being used for the session. | 54 // The host resolver and proxy service that will used when lazily |
| 55 // creating |session_|. |
| 55 scoped_refptr<HostResolver> host_resolver_; | 56 scoped_refptr<HostResolver> host_resolver_; |
| 56 | 57 scoped_refptr<ProxyService> proxy_service_; |
| 57 // The proxy service being used for the session. | |
| 58 ProxyService* proxy_service_; | |
| 59 | 58 |
| 60 scoped_refptr<HttpNetworkSession> session_; | 59 scoped_refptr<HttpNetworkSession> session_; |
| 61 bool suspended_; | 60 bool suspended_; |
| 62 }; | 61 }; |
| 63 | 62 |
| 64 } // namespace net | 63 } // namespace net |
| 65 | 64 |
| 66 #endif // NET_HTTP_HTTP_NETWORK_LAYER_H_ | 65 #endif // NET_HTTP_HTTP_NETWORK_LAYER_H_ |
| OLD | NEW |