| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SESSION_PEER_H_ | 5 #ifndef NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_ |
| 6 #define NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_ | 6 #define NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "net/base/net_export.h" | 9 #include "net/base/net_export.h" |
| 10 | 10 |
| 11 namespace net { | 11 namespace net { |
| 12 | 12 |
| 13 class ClientSocketPoolManager; | 13 class ClientSocketPoolManager; |
| 14 class HttpNetworkSession; | 14 class HttpNetworkSession; |
| 15 class HttpStreamFactory; | 15 class HttpStreamFactory; |
| 16 class ProxyService; | 16 class ProxyService; |
| 17 | 17 |
| 18 class NET_EXPORT_PRIVATE HttpNetworkSessionPeer { | 18 class NET_EXPORT_PRIVATE HttpNetworkSessionPeer { |
| 19 public: | 19 public: |
| 20 explicit HttpNetworkSessionPeer( | 20 explicit HttpNetworkSessionPeer( |
| 21 const scoped_refptr<HttpNetworkSession>& session); | 21 const scoped_refptr<HttpNetworkSession>& session); |
| 22 ~HttpNetworkSessionPeer(); | 22 ~HttpNetworkSessionPeer(); |
| 23 | 23 |
| 24 void SetClientSocketPoolManager( | 24 void SetClientSocketPoolManager( |
| 25 ClientSocketPoolManager* socket_pool_manager); | 25 ClientSocketPoolManager* socket_pool_manager); |
| 26 | 26 |
| 27 void SetProxyService(ProxyService* proxy_service); | 27 void SetProxyService(ProxyService* proxy_service); |
| 28 | 28 |
| 29 void SetHttpStreamFactory(HttpStreamFactory* http_stream_factory); | 29 void SetHttpStreamFactory(HttpStreamFactory* http_stream_factory); |
| 30 void SetWebSocketStreamFactory(HttpStreamFactory* websocket_stream_factory); |
| 30 | 31 |
| 31 private: | 32 private: |
| 32 const scoped_refptr<HttpNetworkSession> session_; | 33 const scoped_refptr<HttpNetworkSession> session_; |
| 33 | 34 |
| 34 DISALLOW_COPY_AND_ASSIGN(HttpNetworkSessionPeer); | 35 DISALLOW_COPY_AND_ASSIGN(HttpNetworkSessionPeer); |
| 35 }; | 36 }; |
| 36 | 37 |
| 37 } // namespace net | 38 } // namespace net |
| 38 | 39 |
| 39 #endif // NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_ | 40 #endif // NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_ |
| OLD | NEW |