| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 bool IsConnectionReused() const override; | 62 bool IsConnectionReused() const override; |
| 63 int64_t GetTotalReceivedBytes() const override; | 63 int64_t GetTotalReceivedBytes() const override; |
| 64 int64_t GetTotalSentBytes() const override; | 64 int64_t GetTotalSentBytes() const override; |
| 65 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; | 65 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; |
| 66 bool GetAlternativeService( | 66 bool GetAlternativeService( |
| 67 AlternativeService* alternative_service) const override; | 67 AlternativeService* alternative_service) const override; |
| 68 void PopulateNetErrorDetails(NetErrorDetails* details) override; | 68 void PopulateNetErrorDetails(NetErrorDetails* details) override; |
| 69 void SetPriority(RequestPriority priority) override; | 69 void SetPriority(RequestPriority priority) override; |
| 70 | 70 |
| 71 // QuicChromiumClientStream::Delegate implementation | 71 // QuicChromiumClientStream::Delegate implementation |
| 72 void OnHeadersAvailable(const SpdyHeaderBlock& headers, | 72 void OnInitialHeadersAvailable(const SpdyHeaderBlock& headers, |
| 73 size_t frame_len) override; | 73 size_t frame_len) override; |
| 74 void OnDataAvailable() override; | 74 void OnDataAvailable() override; |
| 75 void OnTrailingHeadersAvailable(const SpdyHeaderBlock& headers, |
| 76 size_t frame_len) override; |
| 75 void OnClose() override; | 77 void OnClose() override; |
| 76 void OnError(int error) override; | 78 void OnError(int error) override; |
| 77 | 79 |
| 78 // QuicClientPushPromiseIndex::Delegate implementation | 80 // QuicClientPushPromiseIndex::Delegate implementation |
| 79 bool CheckVary(const SpdyHeaderBlock& client_request, | 81 bool CheckVary(const SpdyHeaderBlock& client_request, |
| 80 const SpdyHeaderBlock& promise_request, | 82 const SpdyHeaderBlock& promise_request, |
| 81 const SpdyHeaderBlock& promise_response) override; | 83 const SpdyHeaderBlock& promise_response) override; |
| 82 void OnRendezvousResult(QuicSpdyStream* stream) override; | 84 void OnRendezvousResult(QuicSpdyStream* stream) override; |
| 83 | 85 |
| 84 static HttpResponseInfo::ConnectionInfo ConnectionInfoFromQuicVersion( | 86 static HttpResponseInfo::ConnectionInfo ConnectionInfoFromQuicVersion( |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 LoadTimingInfo::ConnectTiming connect_timing_; | 228 LoadTimingInfo::ConnectTiming connect_timing_; |
| 227 | 229 |
| 228 base::WeakPtrFactory<QuicHttpStream> weak_factory_; | 230 base::WeakPtrFactory<QuicHttpStream> weak_factory_; |
| 229 | 231 |
| 230 DISALLOW_COPY_AND_ASSIGN(QuicHttpStream); | 232 DISALLOW_COPY_AND_ASSIGN(QuicHttpStream); |
| 231 }; | 233 }; |
| 232 | 234 |
| 233 } // namespace net | 235 } // namespace net |
| 234 | 236 |
| 235 #endif // NET_QUIC_CHROMIUM_QUIC_HTTP_STREAM_H_ | 237 #endif // NET_QUIC_CHROMIUM_QUIC_HTTP_STREAM_H_ |
| OLD | NEW |