Chromium Code Reviews| 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 "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
| 11 | 11 |
| 12 namespace net { | 12 namespace net { |
| 13 | 13 |
| 14 class ClientSocketPoolManager; | 14 class ClientSocketPoolManager; |
| 15 class HttpNetworkSession; | 15 class HttpNetworkSession; |
| 16 class HttpStreamFactory; | 16 class HttpStreamFactory; |
| 17 class ProxyService; | 17 class ProxyService; |
| 18 | 18 |
| 19 class NET_EXPORT_PRIVATE HttpNetworkSessionPeer { | 19 class NET_EXPORT_PRIVATE HttpNetworkSessionPeer { |
| 20 public: | 20 public: |
| 21 explicit HttpNetworkSessionPeer( | 21 explicit HttpNetworkSessionPeer(HttpNetworkSession* session); |
|
pauljensen
2015/09/11 13:05:25
should we add a comment like "|session| must outli
mmenke
2015/09/11 14:46:50
Done
| |
| 22 const scoped_refptr<HttpNetworkSession>& session); | |
| 23 ~HttpNetworkSessionPeer(); | 22 ~HttpNetworkSessionPeer(); |
| 24 | 23 |
| 25 void SetClientSocketPoolManager( | 24 void SetClientSocketPoolManager( |
| 26 scoped_ptr<ClientSocketPoolManager> socket_pool_manager); | 25 scoped_ptr<ClientSocketPoolManager> socket_pool_manager); |
| 27 | 26 |
| 28 void SetProxyService(ProxyService* proxy_service); | 27 void SetProxyService(ProxyService* proxy_service); |
| 29 | 28 |
| 30 void SetHttpStreamFactory(scoped_ptr<HttpStreamFactory> http_stream_factory); | 29 void SetHttpStreamFactory(scoped_ptr<HttpStreamFactory> http_stream_factory); |
| 31 void SetHttpStreamFactoryForWebSocket( | 30 void SetHttpStreamFactoryForWebSocket( |
| 32 scoped_ptr<HttpStreamFactory> http_stream_factory_for_websocket); | 31 scoped_ptr<HttpStreamFactory> http_stream_factory_for_websocket); |
| 33 | 32 |
| 34 private: | 33 private: |
| 35 const scoped_refptr<HttpNetworkSession> session_; | 34 HttpNetworkSession* const session_; |
| 36 | 35 |
| 37 DISALLOW_COPY_AND_ASSIGN(HttpNetworkSessionPeer); | 36 DISALLOW_COPY_AND_ASSIGN(HttpNetworkSessionPeer); |
| 38 }; | 37 }; |
| 39 | 38 |
| 40 } // namespace net | 39 } // namespace net |
| 41 | 40 |
| 42 #endif // NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_ | 41 #endif // NET_HTTP_HTTP_NETWORK_SESSION_PEER_H_ |
| OLD | NEW |