| 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_SPDY_SPDY_HTTP_STREAM_H_ | 5 #ifndef NET_SPDY_SPDY_HTTP_STREAM_H_ |
| 6 #define NET_SPDY_SPDY_HTTP_STREAM_H_ | 6 #define NET_SPDY_SPDY_HTTP_STREAM_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 HttpResponseInfo* response, | 50 HttpResponseInfo* response, |
| 51 const CompletionCallback& callback) override; | 51 const CompletionCallback& callback) override; |
| 52 UploadProgress GetUploadProgress() const override; | 52 UploadProgress GetUploadProgress() const override; |
| 53 int ReadResponseHeaders(const CompletionCallback& callback) override; | 53 int ReadResponseHeaders(const CompletionCallback& callback) override; |
| 54 int ReadResponseBody(IOBuffer* buf, | 54 int ReadResponseBody(IOBuffer* buf, |
| 55 int buf_len, | 55 int buf_len, |
| 56 const CompletionCallback& callback) override; | 56 const CompletionCallback& callback) override; |
| 57 void Close(bool not_reusable) override; | 57 void Close(bool not_reusable) override; |
| 58 HttpStream* RenewStreamForAuth() override; | 58 HttpStream* RenewStreamForAuth() override; |
| 59 bool IsResponseBodyComplete() const override; | 59 bool IsResponseBodyComplete() const override; |
| 60 bool CanFindEndOfResponse() const override; | |
| 61 | 60 |
| 62 // Must not be called if a NULL SpdySession was pssed into the | 61 // Must not be called if a NULL SpdySession was pssed into the |
| 63 // constructor. | 62 // constructor. |
| 64 bool IsConnectionReused() const override; | 63 bool IsConnectionReused() const override; |
| 65 | 64 |
| 66 void SetConnectionReused() override; | 65 void SetConnectionReused() override; |
| 67 bool IsConnectionReusable() const override; | 66 bool CanReuseConnection() const override; |
| 68 int64 GetTotalReceivedBytes() const override; | 67 int64 GetTotalReceivedBytes() const override; |
| 69 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; | 68 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; |
| 70 void GetSSLInfo(SSLInfo* ssl_info) override; | 69 void GetSSLInfo(SSLInfo* ssl_info) override; |
| 71 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; | 70 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; |
| 72 bool IsSpdyHttpStream() const override; | |
| 73 void Drain(HttpNetworkSession* session) override; | 71 void Drain(HttpNetworkSession* session) override; |
| 74 void SetPriority(RequestPriority priority) override; | 72 void SetPriority(RequestPriority priority) override; |
| 75 | 73 |
| 76 // SpdyStream::Delegate implementation. | 74 // SpdyStream::Delegate implementation. |
| 77 void OnRequestHeadersSent() override; | 75 void OnRequestHeadersSent() override; |
| 78 SpdyResponseHeadersStatus OnResponseHeadersUpdated( | 76 SpdyResponseHeadersStatus OnResponseHeadersUpdated( |
| 79 const SpdyHeaderBlock& response_headers) override; | 77 const SpdyHeaderBlock& response_headers) override; |
| 80 void OnDataReceived(scoped_ptr<SpdyBuffer> buffer) override; | 78 void OnDataReceived(scoped_ptr<SpdyBuffer> buffer) override; |
| 81 void OnDataSent() override; | 79 void OnDataSent() override; |
| 82 void OnTrailers(const SpdyHeaderBlock& trailers) override; | 80 void OnTrailers(const SpdyHeaderBlock& trailers) override; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 bool direct_; | 156 bool direct_; |
| 159 | 157 |
| 160 base::WeakPtrFactory<SpdyHttpStream> weak_factory_; | 158 base::WeakPtrFactory<SpdyHttpStream> weak_factory_; |
| 161 | 159 |
| 162 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); | 160 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); |
| 163 }; | 161 }; |
| 164 | 162 |
| 165 } // namespace net | 163 } // namespace net |
| 166 | 164 |
| 167 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ | 165 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ |
| OLD | NEW |