| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ | 5 #ifndef NET_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ |
| 6 #define NET_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ | 6 #define NET_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 BidirectionalStreamImpl::Delegate* delegate, | 46 BidirectionalStreamImpl::Delegate* delegate, |
| 47 std::unique_ptr<base::Timer> timer) override; | 47 std::unique_ptr<base::Timer> timer) override; |
| 48 void SendRequestHeaders() override; | 48 void SendRequestHeaders() override; |
| 49 int ReadData(IOBuffer* buf, int buf_len) override; | 49 int ReadData(IOBuffer* buf, int buf_len) override; |
| 50 void SendData(const scoped_refptr<IOBuffer>& data, | 50 void SendData(const scoped_refptr<IOBuffer>& data, |
| 51 int length, | 51 int length, |
| 52 bool end_stream) override; | 52 bool end_stream) override; |
| 53 void SendvData(const std::vector<scoped_refptr<IOBuffer>>& buffers, | 53 void SendvData(const std::vector<scoped_refptr<IOBuffer>>& buffers, |
| 54 const std::vector<int>& lengths, | 54 const std::vector<int>& lengths, |
| 55 bool end_stream) override; | 55 bool end_stream) override; |
| 56 void Cancel() override; | |
| 57 NextProto GetProtocol() const override; | 56 NextProto GetProtocol() const override; |
| 58 int64_t GetTotalReceivedBytes() const override; | 57 int64_t GetTotalReceivedBytes() const override; |
| 59 int64_t GetTotalSentBytes() const override; | 58 int64_t GetTotalSentBytes() const override; |
| 60 | 59 |
| 61 // SpdyStream::Delegate implementation: | 60 // SpdyStream::Delegate implementation: |
| 62 void OnRequestHeadersSent() override; | 61 void OnRequestHeadersSent() override; |
| 63 SpdyResponseHeadersStatus OnResponseHeadersUpdated( | 62 SpdyResponseHeadersStatus OnResponseHeadersUpdated( |
| 64 const SpdyHeaderBlock& response_headers) override; | 63 const SpdyHeaderBlock& response_headers) override; |
| 65 void OnDataReceived(std::unique_ptr<SpdyBuffer> buffer) override; | 64 void OnDataReceived(std::unique_ptr<SpdyBuffer> buffer) override; |
| 66 void OnDataSent() override; | 65 void OnDataSent() override; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 scoped_refptr<IOBuffer> pending_combined_buffer_; | 108 scoped_refptr<IOBuffer> pending_combined_buffer_; |
| 110 | 109 |
| 111 base::WeakPtrFactory<BidirectionalStreamSpdyImpl> weak_factory_; | 110 base::WeakPtrFactory<BidirectionalStreamSpdyImpl> weak_factory_; |
| 112 | 111 |
| 113 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamSpdyImpl); | 112 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamSpdyImpl); |
| 114 }; | 113 }; |
| 115 | 114 |
| 116 } // namespace net | 115 } // namespace net |
| 117 | 116 |
| 118 #endif // NET_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ | 117 #endif // NET_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ |
| OLD | NEW |