| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CHROMIUM_QUIC_HTTP_STREAM_H_ | 5 #ifndef NET_QUIC_CHROMIUM_QUIC_HTTP_STREAM_H_ |
| 6 #define NET_QUIC_CHROMIUM_QUIC_HTTP_STREAM_H_ | 6 #define NET_QUIC_CHROMIUM_QUIC_HTTP_STREAM_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 int ReadResponseHeaders(const CompletionCallback& callback) override; | 57 int ReadResponseHeaders(const CompletionCallback& callback) override; |
| 58 int ReadResponseBody(IOBuffer* buf, | 58 int ReadResponseBody(IOBuffer* buf, |
| 59 int buf_len, | 59 int buf_len, |
| 60 const CompletionCallback& callback) override; | 60 const CompletionCallback& callback) override; |
| 61 void Close(bool not_reusable) override; | 61 void Close(bool not_reusable) override; |
| 62 bool IsResponseBodyComplete() const override; | 62 bool IsResponseBodyComplete() const override; |
| 63 bool IsConnectionReused() const override; | 63 bool IsConnectionReused() const override; |
| 64 int64_t GetTotalReceivedBytes() const override; | 64 int64_t GetTotalReceivedBytes() const override; |
| 65 int64_t GetTotalSentBytes() const override; | 65 int64_t GetTotalSentBytes() const override; |
| 66 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; | 66 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; |
| 67 bool GetAlternativeService( |
| 68 AlternativeService* alternative_service) const override; |
| 67 void PopulateNetErrorDetails(NetErrorDetails* details) override; | 69 void PopulateNetErrorDetails(NetErrorDetails* details) override; |
| 68 void SetPriority(RequestPriority priority) override; | 70 void SetPriority(RequestPriority priority) override; |
| 69 | 71 |
| 70 // QuicChromiumClientStream::Delegate implementation | 72 // QuicChromiumClientStream::Delegate implementation |
| 71 void OnHeadersAvailable(const SpdyHeaderBlock& headers, | 73 void OnHeadersAvailable(const SpdyHeaderBlock& headers, |
| 72 size_t frame_len) override; | 74 size_t frame_len) override; |
| 73 void OnDataAvailable() override; | 75 void OnDataAvailable() override; |
| 74 void OnClose() override; | 76 void OnClose() override; |
| 75 void OnError(int error) override; | 77 void OnError(int error) override; |
| 76 bool HasSendHeadersComplete() override; | 78 bool HasSendHeadersComplete() override; |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 LoadTimingInfo::ConnectTiming connect_timing_; | 238 LoadTimingInfo::ConnectTiming connect_timing_; |
| 237 | 239 |
| 238 base::WeakPtrFactory<QuicHttpStream> weak_factory_; | 240 base::WeakPtrFactory<QuicHttpStream> weak_factory_; |
| 239 | 241 |
| 240 DISALLOW_COPY_AND_ASSIGN(QuicHttpStream); | 242 DISALLOW_COPY_AND_ASSIGN(QuicHttpStream); |
| 241 }; | 243 }; |
| 242 | 244 |
| 243 } // namespace net | 245 } // namespace net |
| 244 | 246 |
| 245 #endif // NET_QUIC_CHROMIUM_QUIC_HTTP_STREAM_H_ | 247 #endif // NET_QUIC_CHROMIUM_QUIC_HTTP_STREAM_H_ |
| OLD | NEW |