| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 // HttpStream methods: | 46 // HttpStream methods: |
| 47 virtual int InitializeStream(const HttpRequestInfo* request_info, | 47 virtual int InitializeStream(const HttpRequestInfo* request_info, |
| 48 const BoundNetLog& net_log, | 48 const BoundNetLog& net_log, |
| 49 OldCompletionCallback* callback) OVERRIDE; | 49 OldCompletionCallback* callback) OVERRIDE; |
| 50 virtual int SendRequest(const HttpRequestHeaders& headers, | 50 virtual int SendRequest(const HttpRequestHeaders& headers, |
| 51 UploadDataStream* request_body, | 51 UploadDataStream* request_body, |
| 52 HttpResponseInfo* response, | 52 HttpResponseInfo* response, |
| 53 OldCompletionCallback* callback) OVERRIDE; | 53 OldCompletionCallback* callback) OVERRIDE; |
| 54 virtual uint64 GetUploadProgress() const OVERRIDE; | 54 virtual uint64 GetUploadProgress() const OVERRIDE; |
| 55 virtual int ReadResponseHeaders(OldCompletionCallback* callback) OVERRIDE; | 55 virtual int ReadResponseHeaders(OldCompletionCallback* callback) OVERRIDE; |
| 56 virtual const HttpResponseInfo* GetResponseInfo() const; | 56 virtual const HttpResponseInfo* GetResponseInfo() const OVERRIDE; |
| 57 virtual int ReadResponseBody(IOBuffer* buf, | 57 virtual int ReadResponseBody(IOBuffer* buf, |
| 58 int buf_len, | 58 int buf_len, |
| 59 OldCompletionCallback* callback) OVERRIDE; | 59 OldCompletionCallback* callback) OVERRIDE; |
| 60 virtual void Close(bool not_reusable) OVERRIDE; | 60 virtual void Close(bool not_reusable) OVERRIDE; |
| 61 virtual HttpStream* RenewStreamForAuth() OVERRIDE; | 61 virtual HttpStream* RenewStreamForAuth() OVERRIDE; |
| 62 virtual bool IsResponseBodyComplete() const OVERRIDE; | 62 virtual bool IsResponseBodyComplete() const OVERRIDE; |
| 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; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 bool direct_; | 135 bool direct_; |
| 136 | 136 |
| 137 bool send_last_chunk_; | 137 bool send_last_chunk_; |
| 138 | 138 |
| 139 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); | 139 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); |
| 140 }; | 140 }; |
| 141 | 141 |
| 142 } // namespace net | 142 } // namespace net |
| 143 | 143 |
| 144 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ | 144 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ |
| OLD | NEW |