| 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> |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 bool end_stream) override; | 54 bool end_stream) override; |
| 55 void SendvData(const std::vector<scoped_refptr<IOBuffer>>& buffers, | 55 void SendvData(const std::vector<scoped_refptr<IOBuffer>>& buffers, |
| 56 const std::vector<int>& lengths, | 56 const std::vector<int>& lengths, |
| 57 bool end_stream) override; | 57 bool end_stream) override; |
| 58 NextProto GetProtocol() const override; | 58 NextProto GetProtocol() const override; |
| 59 int64_t GetTotalReceivedBytes() const override; | 59 int64_t GetTotalReceivedBytes() const override; |
| 60 int64_t GetTotalSentBytes() const override; | 60 int64_t GetTotalSentBytes() const override; |
| 61 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; | 61 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; |
| 62 | 62 |
| 63 // SpdyStream::Delegate implementation: | 63 // SpdyStream::Delegate implementation: |
| 64 void OnRequestHeadersSent() override; | 64 void OnHeadersSent() override; |
| 65 SpdyResponseHeadersStatus OnResponseHeadersUpdated( | 65 void OnHeadersReceived(const SpdyHeaderBlock& response_headers) override; |
| 66 const SpdyHeaderBlock& response_headers) override; | |
| 67 void OnDataReceived(std::unique_ptr<SpdyBuffer> buffer) override; | 66 void OnDataReceived(std::unique_ptr<SpdyBuffer> buffer) override; |
| 68 void OnDataSent() override; | 67 void OnDataSent() override; |
| 69 void OnTrailers(const SpdyHeaderBlock& trailers) override; | 68 void OnTrailers(const SpdyHeaderBlock& trailers) override; |
| 70 void OnClose(int status) override; | 69 void OnClose(int status) override; |
| 71 | 70 |
| 72 private: | 71 private: |
| 73 int SendRequestHeadersHelper(); | 72 int SendRequestHeadersHelper(); |
| 74 void OnStreamInitialized(int rv); | 73 void OnStreamInitialized(int rv); |
| 75 // Notifies delegate of an error. | 74 // Notifies delegate of an error. |
| 76 void NotifyError(int rv); | 75 void NotifyError(int rv); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 scoped_refptr<IOBuffer> pending_combined_buffer_; | 124 scoped_refptr<IOBuffer> pending_combined_buffer_; |
| 126 | 125 |
| 127 base::WeakPtrFactory<BidirectionalStreamSpdyImpl> weak_factory_; | 126 base::WeakPtrFactory<BidirectionalStreamSpdyImpl> weak_factory_; |
| 128 | 127 |
| 129 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamSpdyImpl); | 128 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamSpdyImpl); |
| 130 }; | 129 }; |
| 131 | 130 |
| 132 } // namespace net | 131 } // namespace net |
| 133 | 132 |
| 134 #endif // NET_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ | 133 #endif // NET_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ |
| OLD | NEW |