| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 virtual bool IsResponseBodyComplete() const OVERRIDE; | 59 virtual bool IsResponseBodyComplete() const OVERRIDE; |
| 60 virtual bool CanFindEndOfResponse() const OVERRIDE; | 60 virtual bool CanFindEndOfResponse() const OVERRIDE; |
| 61 | 61 |
| 62 // Must not be called if a NULL SpdySession was pssed into the | 62 // Must not be called if a NULL SpdySession was pssed into the |
| 63 // constructor. | 63 // constructor. |
| 64 virtual bool IsConnectionReused() const OVERRIDE; | 64 virtual bool IsConnectionReused() const OVERRIDE; |
| 65 | 65 |
| 66 virtual void SetConnectionReused() OVERRIDE; | 66 virtual void SetConnectionReused() OVERRIDE; |
| 67 virtual bool IsConnectionReusable() const OVERRIDE; | 67 virtual bool IsConnectionReusable() const OVERRIDE; |
| 68 virtual int64 GetTotalReceivedBytes() const OVERRIDE; | 68 virtual int64 GetTotalReceivedBytes() const OVERRIDE; |
| 69 virtual int64 GetReceivedBodyLength() const OVERRIDE; |
| 69 virtual bool GetLoadTimingInfo( | 70 virtual bool GetLoadTimingInfo( |
| 70 LoadTimingInfo* load_timing_info) const OVERRIDE; | 71 LoadTimingInfo* load_timing_info) const OVERRIDE; |
| 71 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; | 72 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; |
| 72 virtual void GetSSLCertRequestInfo( | 73 virtual void GetSSLCertRequestInfo( |
| 73 SSLCertRequestInfo* cert_request_info) OVERRIDE; | 74 SSLCertRequestInfo* cert_request_info) OVERRIDE; |
| 74 virtual bool IsSpdyHttpStream() const OVERRIDE; | 75 virtual bool IsSpdyHttpStream() const OVERRIDE; |
| 75 virtual void Drain(HttpNetworkSession* session) OVERRIDE; | 76 virtual void Drain(HttpNetworkSession* session) OVERRIDE; |
| 76 virtual void SetPriority(RequestPriority priority) OVERRIDE; | 77 virtual void SetPriority(RequestPriority priority) OVERRIDE; |
| 78 virtual void SetRestartInfo(int64 read_offset, const void* hash, |
| 79 size_t hash_length) OVERRIDE; |
| 80 virtual void GetHash(void* output, size_t len) OVERRIDE; |
| 81 |
| 77 | 82 |
| 78 // SpdyStream::Delegate implementation. | 83 // SpdyStream::Delegate implementation. |
| 79 virtual void OnRequestHeadersSent() OVERRIDE; | 84 virtual void OnRequestHeadersSent() OVERRIDE; |
| 80 virtual SpdyResponseHeadersStatus OnResponseHeadersUpdated( | 85 virtual SpdyResponseHeadersStatus OnResponseHeadersUpdated( |
| 81 const SpdyHeaderBlock& response_headers) OVERRIDE; | 86 const SpdyHeaderBlock& response_headers) OVERRIDE; |
| 82 virtual void OnDataReceived(scoped_ptr<SpdyBuffer> buffer) OVERRIDE; | 87 virtual void OnDataReceived(scoped_ptr<SpdyBuffer> buffer) OVERRIDE; |
| 83 virtual void OnDataSent() OVERRIDE; | 88 virtual void OnDataSent() OVERRIDE; |
| 84 virtual void OnClose(int status) OVERRIDE; | 89 virtual void OnClose(int status) OVERRIDE; |
| 85 | 90 |
| 86 private: | 91 private: |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 bool direct_; | 164 bool direct_; |
| 160 | 165 |
| 161 base::WeakPtrFactory<SpdyHttpStream> weak_factory_; | 166 base::WeakPtrFactory<SpdyHttpStream> weak_factory_; |
| 162 | 167 |
| 163 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); | 168 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); |
| 164 }; | 169 }; |
| 165 | 170 |
| 166 } // namespace net | 171 } // namespace net |
| 167 | 172 |
| 168 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ | 173 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ |
| OLD | NEW |