| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 virtual bool CanFindEndOfResponse() const OVERRIDE; | 63 virtual bool CanFindEndOfResponse() const OVERRIDE; |
| 64 virtual bool IsMoreDataBuffered() const OVERRIDE; | 64 virtual bool IsMoreDataBuffered() const OVERRIDE; |
| 65 virtual bool IsConnectionReused() const OVERRIDE; | 65 virtual bool IsConnectionReused() const OVERRIDE; |
| 66 virtual void SetConnectionReused() OVERRIDE; | 66 virtual void SetConnectionReused() OVERRIDE; |
| 67 virtual bool IsConnectionReusable() const OVERRIDE; | 67 virtual bool IsConnectionReusable() const OVERRIDE; |
| 68 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; | 68 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; |
| 69 virtual void GetSSLCertRequestInfo( | 69 virtual void GetSSLCertRequestInfo( |
| 70 SSLCertRequestInfo* cert_request_info) OVERRIDE; | 70 SSLCertRequestInfo* cert_request_info) OVERRIDE; |
| 71 virtual bool IsSpdyHttpStream() const OVERRIDE; | 71 virtual bool IsSpdyHttpStream() const OVERRIDE; |
| 72 virtual void LogNumRttVsBytesMetrics() const OVERRIDE {} | 72 virtual void LogNumRttVsBytesMetrics() const OVERRIDE {} |
| 73 virtual void Drain(HttpNetworkSession* session) OVERRIDE; |
| 73 | 74 |
| 74 // SpdyStream::Delegate methods: | 75 // SpdyStream::Delegate methods: |
| 75 virtual bool OnSendHeadersComplete(int status) OVERRIDE; | 76 virtual bool OnSendHeadersComplete(int status) OVERRIDE; |
| 76 virtual int OnSendBody() OVERRIDE; | 77 virtual int OnSendBody() OVERRIDE; |
| 77 virtual int OnSendBodyComplete(int status, bool* eof) OVERRIDE; | 78 virtual int OnSendBodyComplete(int status, bool* eof) OVERRIDE; |
| 78 virtual int OnResponseReceived(const spdy::SpdyHeaderBlock& response, | 79 virtual int OnResponseReceived(const spdy::SpdyHeaderBlock& response, |
| 79 base::Time response_time, | 80 base::Time response_time, |
| 80 int status) OVERRIDE; | 81 int status) OVERRIDE; |
| 81 virtual void OnDataReceived(const char* buffer, int bytes) OVERRIDE; | 82 virtual void OnDataReceived(const char* buffer, int bytes) OVERRIDE; |
| 82 virtual void OnDataSent(int length) OVERRIDE; | 83 virtual void OnDataSent(int length) OVERRIDE; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 bool direct_; | 135 bool direct_; |
| 135 | 136 |
| 136 bool send_last_chunk_; | 137 bool send_last_chunk_; |
| 137 | 138 |
| 138 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); | 139 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); |
| 139 }; | 140 }; |
| 140 | 141 |
| 141 } // namespace net | 142 } // namespace net |
| 142 | 143 |
| 143 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ | 144 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ |
| OLD | NEW |