| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_QUIC_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ | 5 #ifndef NET_QUIC_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ |
| 6 #define NET_QUIC_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ | 6 #define NET_QUIC_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 ~BidirectionalStreamQuicImpl() override; | 37 ~BidirectionalStreamQuicImpl() override; |
| 38 | 38 |
| 39 // BidirectionalStreamImpl implementation: | 39 // BidirectionalStreamImpl implementation: |
| 40 void Start(const BidirectionalStreamRequestInfo* request_info, | 40 void Start(const BidirectionalStreamRequestInfo* request_info, |
| 41 const BoundNetLog& net_log, | 41 const BoundNetLog& net_log, |
| 42 bool disable_auto_flush, | 42 bool disable_auto_flush, |
| 43 BidirectionalStreamImpl::Delegate* delegate, | 43 BidirectionalStreamImpl::Delegate* delegate, |
| 44 std::unique_ptr<base::Timer> timer) override; | 44 std::unique_ptr<base::Timer> timer) override; |
| 45 int ReadData(IOBuffer* buffer, int buffer_len) override; | 45 int ReadData(IOBuffer* buffer, int buffer_len) override; |
| 46 void SendData(IOBuffer* data, int length, bool end_stream) override; | 46 void SendData(const scoped_refptr<IOBuffer>& data, |
| 47 void SendvData(const std::vector<IOBuffer*>& buffers, | 47 int length, |
| 48 bool end_stream) override; |
| 49 void SendvData(const std::vector<scoped_refptr<IOBuffer>>& buffers, |
| 48 const std::vector<int>& lengths, | 50 const std::vector<int>& lengths, |
| 49 bool end_stream) override; | 51 bool end_stream) override; |
| 50 void Cancel() override; | 52 void Cancel() override; |
| 51 NextProto GetProtocol() const override; | 53 NextProto GetProtocol() const override; |
| 52 int64_t GetTotalReceivedBytes() const override; | 54 int64_t GetTotalReceivedBytes() const override; |
| 53 int64_t GetTotalSentBytes() const override; | 55 int64_t GetTotalSentBytes() const override; |
| 54 | 56 |
| 55 private: | 57 private: |
| 56 // QuicChromiumClientStream::Delegate implementation: | 58 // QuicChromiumClientStream::Delegate implementation: |
| 57 void OnHeadersAvailable(const SpdyHeaderBlock& headers, | 59 void OnHeadersAvailable(const SpdyHeaderBlock& headers, |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 bool disable_auto_flush_; | 114 bool disable_auto_flush_; |
| 113 | 115 |
| 114 base::WeakPtrFactory<BidirectionalStreamQuicImpl> weak_factory_; | 116 base::WeakPtrFactory<BidirectionalStreamQuicImpl> weak_factory_; |
| 115 | 117 |
| 116 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamQuicImpl); | 118 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamQuicImpl); |
| 117 }; | 119 }; |
| 118 | 120 |
| 119 } // namespace net | 121 } // namespace net |
| 120 | 122 |
| 121 #endif // NET_QUIC_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ | 123 #endif // NET_QUIC_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ |
| OLD | NEW |