| 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_QUIC_HTTP_STREAM_H_ | 5 #ifndef NET_QUIC_QUIC_HTTP_STREAM_H_ |
| 6 #define NET_QUIC_QUIC_HTTP_STREAM_H_ | 6 #define NET_QUIC_QUIC_HTTP_STREAM_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include <list> | 10 #include <list> |
| 9 | 11 |
| 10 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 11 | 13 |
| 12 // TODO(rtenneti): Temporary while investigating crbug.com/468529. | 14 // TODO(rtenneti): Temporary while investigating crbug.com/468529. |
| 13 // Note base::Debug::StackTrace() is not supported in NACL | 15 // Note base::Debug::StackTrace() is not supported in NACL |
| 14 // builds so conditionally disabled it there. | 16 // builds so conditionally disabled it there. |
| 15 #ifndef OS_NACL | 17 #ifndef OS_NACL |
| 16 #define TEMP_INSTRUMENTATION_468529 | 18 #define TEMP_INSTRUMENTATION_468529 |
| 17 #endif | 19 #endif |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 int ReadResponseBody(IOBuffer* buf, | 59 int ReadResponseBody(IOBuffer* buf, |
| 58 int buf_len, | 60 int buf_len, |
| 59 const CompletionCallback& callback) override; | 61 const CompletionCallback& callback) override; |
| 60 void Close(bool not_reusable) override; | 62 void Close(bool not_reusable) override; |
| 61 HttpStream* RenewStreamForAuth() override; | 63 HttpStream* RenewStreamForAuth() override; |
| 62 bool IsResponseBodyComplete() const override; | 64 bool IsResponseBodyComplete() const override; |
| 63 bool IsConnectionReused() const override; | 65 bool IsConnectionReused() const override; |
| 64 void SetConnectionReused() override; | 66 void SetConnectionReused() override; |
| 65 bool CanReuseConnection() const override; | 67 bool CanReuseConnection() const override; |
| 66 int64 GetTotalReceivedBytes() const override; | 68 int64 GetTotalReceivedBytes() const override; |
| 69 int64_t GetTotalSentBytes() const override; |
| 67 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; | 70 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; |
| 68 void GetSSLInfo(SSLInfo* ssl_info) override; | 71 void GetSSLInfo(SSLInfo* ssl_info) override; |
| 69 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; | 72 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; |
| 70 void Drain(HttpNetworkSession* session) override; | 73 void Drain(HttpNetworkSession* session) override; |
| 71 void SetPriority(RequestPriority priority) override; | 74 void SetPriority(RequestPriority priority) override; |
| 72 | 75 |
| 73 // QuicReliableClientStream::Delegate implementation | 76 // QuicReliableClientStream::Delegate implementation |
| 74 void OnHeadersAvailable(const SpdyHeaderBlock& headers) override; | 77 void OnHeadersAvailable(const SpdyHeaderBlock& headers) override; |
| 75 void OnDataAvailable() override; | 78 void OnDataAvailable() override; |
| 76 void OnClose(QuicErrorCode error) override; | 79 void OnClose(QuicErrorCode error) override; |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 #endif | 191 #endif |
| 189 | 192 |
| 190 base::WeakPtrFactory<QuicHttpStream> weak_factory_; | 193 base::WeakPtrFactory<QuicHttpStream> weak_factory_; |
| 191 | 194 |
| 192 DISALLOW_COPY_AND_ASSIGN(QuicHttpStream); | 195 DISALLOW_COPY_AND_ASSIGN(QuicHttpStream); |
| 193 }; | 196 }; |
| 194 | 197 |
| 195 } // namespace net | 198 } // namespace net |
| 196 | 199 |
| 197 #endif // NET_QUIC_QUIC_HTTP_STREAM_H_ | 200 #endif // NET_QUIC_QUIC_HTTP_STREAM_H_ |
| OLD | NEW |