| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 const CompletionCallback& callback) override; | 85 const CompletionCallback& callback) override; |
| 86 int Write(IOBuffer* buf, | 86 int Write(IOBuffer* buf, |
| 87 int buf_len, | 87 int buf_len, |
| 88 const CompletionCallback& callback) override; | 88 const CompletionCallback& callback) override; |
| 89 int SetReceiveBufferSize(int32_t size) override; | 89 int SetReceiveBufferSize(int32_t size) override; |
| 90 int SetSendBufferSize(int32_t size) override; | 90 int SetSendBufferSize(int32_t size) override; |
| 91 int GetPeerAddress(IPEndPoint* address) const override; | 91 int GetPeerAddress(IPEndPoint* address) const override; |
| 92 int GetLocalAddress(IPEndPoint* address) const override; | 92 int GetLocalAddress(IPEndPoint* address) const override; |
| 93 | 93 |
| 94 // SpdyStream::Delegate implementation. | 94 // SpdyStream::Delegate implementation. |
| 95 void OnRequestHeadersSent() override; | 95 void OnHeadersSent() override; |
| 96 SpdyResponseHeadersStatus OnResponseHeadersUpdated( | 96 void OnHeadersReceived(const SpdyHeaderBlock& response_headers) override; |
| 97 const SpdyHeaderBlock& response_headers) override; | |
| 98 void OnDataReceived(std::unique_ptr<SpdyBuffer> buffer) override; | 97 void OnDataReceived(std::unique_ptr<SpdyBuffer> buffer) override; |
| 99 void OnDataSent() override; | 98 void OnDataSent() override; |
| 100 void OnTrailers(const SpdyHeaderBlock& trailers) override; | 99 void OnTrailers(const SpdyHeaderBlock& trailers) override; |
| 101 void OnClose(int status) override; | 100 void OnClose(int status) override; |
| 102 | 101 |
| 103 private: | 102 private: |
| 104 enum State { | 103 enum State { |
| 105 STATE_DISCONNECTED, | 104 STATE_DISCONNECTED, |
| 106 STATE_GENERATE_AUTH_TOKEN, | 105 STATE_GENERATE_AUTH_TOKEN, |
| 107 STATE_GENERATE_AUTH_TOKEN_COMPLETE, | 106 STATE_GENERATE_AUTH_TOKEN_COMPLETE, |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 // Only used for posting write callbacks. Weak pointers created by this | 177 // Only used for posting write callbacks. Weak pointers created by this |
| 179 // factory are invalidated in Disconnect(). | 178 // factory are invalidated in Disconnect(). |
| 180 base::WeakPtrFactory<SpdyProxyClientSocket> write_callback_weak_factory_; | 179 base::WeakPtrFactory<SpdyProxyClientSocket> write_callback_weak_factory_; |
| 181 | 180 |
| 182 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); | 181 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); |
| 183 }; | 182 }; |
| 184 | 183 |
| 185 } // namespace net | 184 } // namespace net |
| 186 | 185 |
| 187 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ | 186 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ |
| OLD | NEW |