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 22 matching lines...) Expand all Loading... |
33 public QuicChromiumClientStream::Delegate, | 33 public QuicChromiumClientStream::Delegate, |
34 public QuicChromiumClientSession::Observer { | 34 public QuicChromiumClientSession::Observer { |
35 public: | 35 public: |
36 explicit BidirectionalStreamQuicImpl( | 36 explicit BidirectionalStreamQuicImpl( |
37 const base::WeakPtr<QuicChromiumClientSession>& session); | 37 const base::WeakPtr<QuicChromiumClientSession>& session); |
38 | 38 |
39 ~BidirectionalStreamQuicImpl() override; | 39 ~BidirectionalStreamQuicImpl() override; |
40 | 40 |
41 // BidirectionalStreamImpl implementation: | 41 // BidirectionalStreamImpl implementation: |
42 void Start(const BidirectionalStreamRequestInfo* request_info, | 42 void Start(const BidirectionalStreamRequestInfo* request_info, |
43 const BoundNetLog& net_log, | 43 const NetLogWithSource& net_log, |
44 bool send_request_headers_automatically, | 44 bool send_request_headers_automatically, |
45 BidirectionalStreamImpl::Delegate* delegate, | 45 BidirectionalStreamImpl::Delegate* delegate, |
46 std::unique_ptr<base::Timer> timer) override; | 46 std::unique_ptr<base::Timer> timer) override; |
47 void SendRequestHeaders() override; | 47 void SendRequestHeaders() override; |
48 int ReadData(IOBuffer* buffer, int buffer_len) override; | 48 int ReadData(IOBuffer* buffer, int buffer_len) override; |
49 void SendData(const scoped_refptr<IOBuffer>& data, | 49 void SendData(const scoped_refptr<IOBuffer>& data, |
50 int length, | 50 int length, |
51 bool end_stream) override; | 51 bool end_stream) override; |
52 void SendvData(const std::vector<scoped_refptr<IOBuffer>>& buffers, | 52 void SendvData(const std::vector<scoped_refptr<IOBuffer>>& buffers, |
53 const std::vector<int>& lengths, | 53 const std::vector<int>& lengths, |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 bool waiting_for_confirmation_; | 133 bool waiting_for_confirmation_; |
134 | 134 |
135 base::WeakPtrFactory<BidirectionalStreamQuicImpl> weak_factory_; | 135 base::WeakPtrFactory<BidirectionalStreamQuicImpl> weak_factory_; |
136 | 136 |
137 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamQuicImpl); | 137 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamQuicImpl); |
138 }; | 138 }; |
139 | 139 |
140 } // namespace net | 140 } // namespace net |
141 | 141 |
142 #endif // NET_QUIC_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ | 142 #endif // NET_QUIC_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ |
OLD | NEW |