| 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 21 matching lines...) Expand all Loading... |
| 32 public QuicChromiumClientStream::Delegate, | 32 public QuicChromiumClientStream::Delegate, |
| 33 public QuicChromiumClientSession::Observer { | 33 public QuicChromiumClientSession::Observer { |
| 34 public: | 34 public: |
| 35 explicit BidirectionalStreamQuicImpl( | 35 explicit BidirectionalStreamQuicImpl( |
| 36 const base::WeakPtr<QuicChromiumClientSession>& session); | 36 const base::WeakPtr<QuicChromiumClientSession>& session); |
| 37 | 37 |
| 38 ~BidirectionalStreamQuicImpl() override; | 38 ~BidirectionalStreamQuicImpl() override; |
| 39 | 39 |
| 40 // BidirectionalStreamImpl implementation: | 40 // BidirectionalStreamImpl implementation: |
| 41 void Start(const BidirectionalStreamRequestInfo* request_info, | 41 void Start(const BidirectionalStreamRequestInfo* request_info, |
| 42 const BoundNetLog& net_log, | 42 const NetLogWithSource& net_log, |
| 43 bool send_request_headers_automatically, | 43 bool send_request_headers_automatically, |
| 44 BidirectionalStreamImpl::Delegate* delegate, | 44 BidirectionalStreamImpl::Delegate* delegate, |
| 45 std::unique_ptr<base::Timer> timer) override; | 45 std::unique_ptr<base::Timer> timer) override; |
| 46 void SendRequestHeaders() override; | 46 void SendRequestHeaders() override; |
| 47 int ReadData(IOBuffer* buffer, int buffer_len) override; | 47 int ReadData(IOBuffer* buffer, int buffer_len) override; |
| 48 void SendData(const scoped_refptr<IOBuffer>& data, | 48 void SendData(const scoped_refptr<IOBuffer>& data, |
| 49 int length, | 49 int length, |
| 50 bool end_stream) override; | 50 bool end_stream) override; |
| 51 void SendvData(const std::vector<scoped_refptr<IOBuffer>>& buffers, | 51 void SendvData(const std::vector<scoped_refptr<IOBuffer>>& buffers, |
| 52 const std::vector<int>& lengths, | 52 const std::vector<int>& lengths, |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 bool waiting_for_confirmation_; | 123 bool waiting_for_confirmation_; |
| 124 | 124 |
| 125 base::WeakPtrFactory<BidirectionalStreamQuicImpl> weak_factory_; | 125 base::WeakPtrFactory<BidirectionalStreamQuicImpl> weak_factory_; |
| 126 | 126 |
| 127 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamQuicImpl); | 127 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamQuicImpl); |
| 128 }; | 128 }; |
| 129 | 129 |
| 130 } // namespace net | 130 } // namespace net |
| 131 | 131 |
| 132 #endif // NET_QUIC_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ | 132 #endif // NET_QUIC_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ |
| OLD | NEW |