| 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_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ | 5 #ifndef NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ |
| 6 #define NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ | 6 #define NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 namespace net { | 32 namespace net { |
| 33 | 33 |
| 34 class AddressList; | 34 class AddressList; |
| 35 class HttpStream; | 35 class HttpStream; |
| 36 class IOBuffer; | 36 class IOBuffer; |
| 37 class SpdyStream; | 37 class SpdyStream; |
| 38 | 38 |
| 39 class NET_EXPORT_PRIVATE SpdyProxyClientSocket : public ProxyClientSocket, | 39 class NET_EXPORT_PRIVATE SpdyProxyClientSocket : public ProxyClientSocket, |
| 40 public SpdyStream::Delegate { | 40 public SpdyStream::Delegate { |
| 41 public: | 41 public: |
| 42 // Create a socket on top of the |spdy_stream| by sending a SYN_STREAM | 42 // Create a socket on top of the |spdy_stream| by sending a HEADERS CONNECT |
| 43 // CONNECT frame for |endpoint|. After the SYN_REPLY is received, | 43 // frame for |endpoint|. After the response HEADERS frame is received, any |
| 44 // any data read/written to the socket will be transferred in data | 44 // data read/written to the socket will be transferred in data frames. This |
| 45 // frames. This object will set itself as |spdy_stream|'s delegate. | 45 // object will set itself as |spdy_stream|'s delegate. |
| 46 SpdyProxyClientSocket(const base::WeakPtr<SpdyStream>& spdy_stream, | 46 SpdyProxyClientSocket(const base::WeakPtr<SpdyStream>& spdy_stream, |
| 47 const std::string& user_agent, | 47 const std::string& user_agent, |
| 48 const HostPortPair& endpoint, | 48 const HostPortPair& endpoint, |
| 49 const HostPortPair& proxy_server, | 49 const HostPortPair& proxy_server, |
| 50 const BoundNetLog& source_net_log, | 50 const BoundNetLog& source_net_log, |
| 51 HttpAuthController* auth_controller); | 51 HttpAuthController* auth_controller); |
| 52 | 52 |
| 53 // On destruction Disconnect() is called. | 53 // On destruction Disconnect() is called. |
| 54 ~SpdyProxyClientSocket() override; | 54 ~SpdyProxyClientSocket() override; |
| 55 | 55 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 // Only used for posting write callbacks. Weak pointers created by this | 177 // Only used for posting write callbacks. Weak pointers created by this |
| 178 // factory are invalidated in Disconnect(). | 178 // factory are invalidated in Disconnect(). |
| 179 base::WeakPtrFactory<SpdyProxyClientSocket> write_callback_weak_factory_; | 179 base::WeakPtrFactory<SpdyProxyClientSocket> write_callback_weak_factory_; |
| 180 | 180 |
| 181 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); | 181 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); |
| 182 }; | 182 }; |
| 183 | 183 |
| 184 } // namespace net | 184 } // namespace net |
| 185 | 185 |
| 186 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ | 186 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ |
| OLD | NEW |