| 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> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 #include "net/base/load_timing_info.h" |
| 15 #include "net/http/bidirectional_stream_impl.h" | 16 #include "net/http/bidirectional_stream_impl.h" |
| 16 #include "net/log/net_log.h" | 17 #include "net/log/net_log.h" |
| 17 #include "net/quic/chromium/quic_chromium_client_session.h" | 18 #include "net/quic/chromium/quic_chromium_client_session.h" |
| 18 #include "net/quic/chromium/quic_chromium_client_stream.h" | 19 #include "net/quic/chromium/quic_chromium_client_stream.h" |
| 19 #include "net/spdy/spdy_header_block.h" | 20 #include "net/spdy/spdy_header_block.h" |
| 20 | 21 |
| 21 namespace base { | 22 namespace base { |
| 22 class Timer; | 23 class Timer; |
| 23 } // namespace base | 24 } // namespace base |
| 24 | 25 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 47 int ReadData(IOBuffer* buffer, int buffer_len) override; | 48 int ReadData(IOBuffer* buffer, int buffer_len) override; |
| 48 void SendData(const scoped_refptr<IOBuffer>& data, | 49 void SendData(const scoped_refptr<IOBuffer>& data, |
| 49 int length, | 50 int length, |
| 50 bool end_stream) override; | 51 bool end_stream) override; |
| 51 void SendvData(const std::vector<scoped_refptr<IOBuffer>>& buffers, | 52 void SendvData(const std::vector<scoped_refptr<IOBuffer>>& buffers, |
| 52 const std::vector<int>& lengths, | 53 const std::vector<int>& lengths, |
| 53 bool end_stream) override; | 54 bool end_stream) override; |
| 54 NextProto GetProtocol() const override; | 55 NextProto GetProtocol() const override; |
| 55 int64_t GetTotalReceivedBytes() const override; | 56 int64_t GetTotalReceivedBytes() const override; |
| 56 int64_t GetTotalSentBytes() const override; | 57 int64_t GetTotalSentBytes() const override; |
| 58 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; |
| 57 | 59 |
| 58 private: | 60 private: |
| 59 // QuicChromiumClientStream::Delegate implementation: | 61 // QuicChromiumClientStream::Delegate implementation: |
| 60 void OnHeadersAvailable(const SpdyHeaderBlock& headers, | 62 void OnHeadersAvailable(const SpdyHeaderBlock& headers, |
| 61 size_t frame_len) override; | 63 size_t frame_len) override; |
| 62 void OnDataAvailable() override; | 64 void OnDataAvailable() override; |
| 63 void OnClose() override; | 65 void OnClose() override; |
| 64 void OnError(int error) override; | 66 void OnError(int error) override; |
| 65 bool HasSendHeadersComplete() override; | 67 bool HasSendHeadersComplete() override; |
| 66 | 68 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 bool waiting_for_confirmation_; | 125 bool waiting_for_confirmation_; |
| 124 | 126 |
| 125 base::WeakPtrFactory<BidirectionalStreamQuicImpl> weak_factory_; | 127 base::WeakPtrFactory<BidirectionalStreamQuicImpl> weak_factory_; |
| 126 | 128 |
| 127 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamQuicImpl); | 129 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamQuicImpl); |
| 128 }; | 130 }; |
| 129 | 131 |
| 130 } // namespace net | 132 } // namespace net |
| 131 | 133 |
| 132 #endif // NET_QUIC_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ | 134 #endif // NET_QUIC_BIDIRECTIONAL_STREAM_QUIC_IMPL_H_ |
| OLD | NEW |