| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 // Socket implementation. | 81 // Socket implementation. |
| 82 int Read(IOBuffer* buf, | 82 int Read(IOBuffer* buf, |
| 83 int buf_len, | 83 int buf_len, |
| 84 const CompletionCallback& callback) override; | 84 const CompletionCallback& callback) override; |
| 85 int Write(IOBuffer* buf, | 85 int Write(IOBuffer* buf, |
| 86 int buf_len, | 86 int buf_len, |
| 87 const CompletionCallback& callback) override; | 87 const CompletionCallback& callback) override; |
| 88 int SetReceiveBufferSize(int32_t size) override; | 88 int SetReceiveBufferSize(int32_t size) override; |
| 89 int SetSendBufferSize(int32_t size) override; | 89 int SetSendBufferSize(int32_t size) override; |
| 90 int SetDoNotFragment(bool do_not_fragment) override; |
| 90 int GetPeerAddress(IPEndPoint* address) const override; | 91 int GetPeerAddress(IPEndPoint* address) const override; |
| 91 int GetLocalAddress(IPEndPoint* address) const override; | 92 int GetLocalAddress(IPEndPoint* address) const override; |
| 92 | 93 |
| 93 // SpdyStream::Delegate implementation. | 94 // SpdyStream::Delegate implementation. |
| 94 void OnRequestHeadersSent() override; | 95 void OnRequestHeadersSent() override; |
| 95 SpdyResponseHeadersStatus OnResponseHeadersUpdated( | 96 SpdyResponseHeadersStatus OnResponseHeadersUpdated( |
| 96 const SpdyHeaderBlock& response_headers) override; | 97 const SpdyHeaderBlock& response_headers) override; |
| 97 void OnDataReceived(std::unique_ptr<SpdyBuffer> buffer) override; | 98 void OnDataReceived(std::unique_ptr<SpdyBuffer> buffer) override; |
| 98 void OnDataSent() override; | 99 void OnDataSent() override; |
| 99 void OnTrailers(const SpdyHeaderBlock& trailers) override; | 100 void OnTrailers(const SpdyHeaderBlock& trailers) override; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 // Only used for posting write callbacks. Weak pointers created by this | 178 // Only used for posting write callbacks. Weak pointers created by this |
| 178 // factory are invalidated in Disconnect(). | 179 // factory are invalidated in Disconnect(). |
| 179 base::WeakPtrFactory<SpdyProxyClientSocket> write_callback_weak_factory_; | 180 base::WeakPtrFactory<SpdyProxyClientSocket> write_callback_weak_factory_; |
| 180 | 181 |
| 181 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); | 182 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); |
| 182 }; | 183 }; |
| 183 | 184 |
| 184 } // namespace net | 185 } // namespace net |
| 185 | 186 |
| 186 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ | 187 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ |
| OLD | NEW |