Chromium Code Reviews| 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> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/ref_counted.h" | |
| 13 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 14 #include "net/http/bidirectional_stream_impl.h" | 15 #include "net/http/bidirectional_stream_impl.h" |
| 15 #include "net/http/bidirectional_stream_request_info.h" | 16 #include "net/http/bidirectional_stream_request_info.h" |
| 16 #include "net/http/http_request_info.h" | 17 #include "net/http/http_request_info.h" |
| 17 #include "net/spdy/spdy_read_queue.h" | 18 #include "net/spdy/spdy_read_queue.h" |
| 18 #include "net/spdy/spdy_session.h" | 19 #include "net/spdy/spdy_session.h" |
| 19 #include "net/spdy/spdy_stream.h" | 20 #include "net/spdy/spdy_stream.h" |
| 20 | 21 |
| 21 namespace base { | 22 namespace base { |
| 22 class Timer; | 23 class Timer; |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 37 | 38 |
| 38 ~BidirectionalStreamSpdyImpl() override; | 39 ~BidirectionalStreamSpdyImpl() override; |
| 39 | 40 |
| 40 // BidirectionalStreamImpl implementation: | 41 // BidirectionalStreamImpl implementation: |
| 41 void Start(const BidirectionalStreamRequestInfo* request_info, | 42 void Start(const BidirectionalStreamRequestInfo* request_info, |
| 42 const BoundNetLog& net_log, | 43 const BoundNetLog& net_log, |
| 43 bool disable_auto_flush, | 44 bool disable_auto_flush, |
| 44 BidirectionalStreamImpl::Delegate* delegate, | 45 BidirectionalStreamImpl::Delegate* delegate, |
| 45 std::unique_ptr<base::Timer> timer) override; | 46 std::unique_ptr<base::Timer> timer) override; |
| 46 int ReadData(IOBuffer* buf, int buf_len) override; | 47 int ReadData(IOBuffer* buf, int buf_len) override; |
| 47 void SendData(IOBuffer* data, int length, bool end_stream) override; | 48 void SendData(const scoped_refptr<IOBuffer>& data, |
| 48 void SendvData(const std::vector<IOBuffer*>& buffers, | 49 int length, |
| 50 bool end_stream) override; | |
| 51 void SendvData(const std::vector<scoped_refptr<IOBuffer>>& buffers, | |
|
mef
2016/05/16 16:32:32
#include <vector>
xunjieli
2016/05/16 18:15:59
Done.
| |
| 49 const std::vector<int>& lengths, | 52 const std::vector<int>& lengths, |
| 50 bool end_stream) override; | 53 bool end_stream) override; |
| 51 void Cancel() override; | 54 void Cancel() override; |
| 52 NextProto GetProtocol() const override; | 55 NextProto GetProtocol() const override; |
| 53 int64_t GetTotalReceivedBytes() const override; | 56 int64_t GetTotalReceivedBytes() const override; |
| 54 int64_t GetTotalSentBytes() const override; | 57 int64_t GetTotalSentBytes() const override; |
| 55 | 58 |
| 56 // SpdyStream::Delegate implementation: | 59 // SpdyStream::Delegate implementation: |
| 57 void OnRequestHeadersSent() override; | 60 void OnRequestHeadersSent() override; |
| 58 SpdyResponseHeadersStatus OnResponseHeadersUpdated( | 61 SpdyResponseHeadersStatus OnResponseHeadersUpdated( |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 103 scoped_refptr<IOBuffer> pending_combined_buffer_; | 106 scoped_refptr<IOBuffer> pending_combined_buffer_; |
| 104 | 107 |
| 105 base::WeakPtrFactory<BidirectionalStreamSpdyImpl> weak_factory_; | 108 base::WeakPtrFactory<BidirectionalStreamSpdyImpl> weak_factory_; |
| 106 | 109 |
| 107 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamSpdyImpl); | 110 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamSpdyImpl); |
| 108 }; | 111 }; |
| 109 | 112 |
| 110 } // namespace net | 113 } // namespace net |
| 111 | 114 |
| 112 #endif // NET_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ | 115 #endif // NET_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ |
| OLD | NEW |