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_CHROMIUM_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ | 5 #ifndef NET_SPDY_CHROMIUM_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ |
6 #define NET_SPDY_CHROMIUM_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ | 6 #define NET_SPDY_CHROMIUM_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 ~BidirectionalStreamSpdyImpl() override; | 43 ~BidirectionalStreamSpdyImpl() override; |
44 | 44 |
45 // BidirectionalStreamImpl implementation: | 45 // BidirectionalStreamImpl implementation: |
46 void Start(const BidirectionalStreamRequestInfo* request_info, | 46 void Start(const BidirectionalStreamRequestInfo* request_info, |
47 const NetLogWithSource& net_log, | 47 const NetLogWithSource& net_log, |
48 bool send_request_headers_automatically, | 48 bool send_request_headers_automatically, |
49 BidirectionalStreamImpl::Delegate* delegate, | 49 BidirectionalStreamImpl::Delegate* delegate, |
50 std::unique_ptr<base::Timer> timer) override; | 50 std::unique_ptr<base::Timer> timer) override; |
51 void SendRequestHeaders() override; | 51 void SendRequestHeaders() override; |
52 int ReadData(IOBuffer* buf, int buf_len) override; | 52 int ReadData(IOBuffer* buf, int buf_len) override; |
53 void SendData(const scoped_refptr<IOBuffer>& data, | |
54 int length, | |
55 bool end_stream) override; | |
56 void SendvData(const std::vector<scoped_refptr<IOBuffer>>& buffers, | 53 void SendvData(const std::vector<scoped_refptr<IOBuffer>>& buffers, |
57 const std::vector<int>& lengths, | 54 const std::vector<int>& lengths, |
58 bool end_stream) override; | 55 bool end_stream) override; |
59 NextProto GetProtocol() const override; | 56 NextProto GetProtocol() const override; |
60 int64_t GetTotalReceivedBytes() const override; | 57 int64_t GetTotalReceivedBytes() const override; |
61 int64_t GetTotalSentBytes() const override; | 58 int64_t GetTotalSentBytes() const override; |
62 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; | 59 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; |
63 | 60 |
64 // SpdyStream::Delegate implementation: | 61 // SpdyStream::Delegate implementation: |
65 void OnHeadersSent() override; | 62 void OnHeadersSent() override; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 scoped_refptr<IOBuffer> pending_combined_buffer_; | 124 scoped_refptr<IOBuffer> pending_combined_buffer_; |
128 | 125 |
129 base::WeakPtrFactory<BidirectionalStreamSpdyImpl> weak_factory_; | 126 base::WeakPtrFactory<BidirectionalStreamSpdyImpl> weak_factory_; |
130 | 127 |
131 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamSpdyImpl); | 128 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamSpdyImpl); |
132 }; | 129 }; |
133 | 130 |
134 } // namespace net | 131 } // namespace net |
135 | 132 |
136 #endif // NET_SPDY_CHROMIUM_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ | 133 #endif // NET_SPDY_CHROMIUM_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ |
OLD | NEW |