| 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 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 void Cancel(); | 46 void Cancel(); |
| 47 | 47 |
| 48 // HttpStream implementation. | 48 // HttpStream implementation. |
| 49 virtual int InitializeStream(const HttpRequestInfo* request_info, | 49 virtual int InitializeStream(const HttpRequestInfo* request_info, |
| 50 const BoundNetLog& net_log, | 50 const BoundNetLog& net_log, |
| 51 const CompletionCallback& callback) OVERRIDE; | 51 const CompletionCallback& callback) OVERRIDE; |
| 52 virtual int SendRequest(const HttpRequestHeaders& headers, | 52 virtual int SendRequest(const HttpRequestHeaders& headers, |
| 53 scoped_ptr<UploadDataStream> request_body, | 53 scoped_ptr<UploadDataStream> request_body, |
| 54 HttpResponseInfo* response, | 54 HttpResponseInfo* response, |
| 55 const CompletionCallback& callback) OVERRIDE; | 55 const CompletionCallback& callback) OVERRIDE; |
| 56 virtual uint64 GetUploadProgress() const OVERRIDE; | 56 virtual UploadProgress GetUploadProgress() const OVERRIDE; |
| 57 virtual int ReadResponseHeaders(const CompletionCallback& callback) OVERRIDE; | 57 virtual int ReadResponseHeaders(const CompletionCallback& callback) OVERRIDE; |
| 58 virtual const HttpResponseInfo* GetResponseInfo() const OVERRIDE; | 58 virtual const HttpResponseInfo* GetResponseInfo() const OVERRIDE; |
| 59 virtual int ReadResponseBody(IOBuffer* buf, | 59 virtual int ReadResponseBody(IOBuffer* buf, |
| 60 int buf_len, | 60 int buf_len, |
| 61 const CompletionCallback& callback) OVERRIDE; | 61 const CompletionCallback& callback) OVERRIDE; |
| 62 virtual void Close(bool not_reusable) OVERRIDE; | 62 virtual void Close(bool not_reusable) OVERRIDE; |
| 63 virtual HttpStream* RenewStreamForAuth() OVERRIDE; | 63 virtual HttpStream* RenewStreamForAuth() OVERRIDE; |
| 64 virtual bool IsResponseBodyComplete() const OVERRIDE; | 64 virtual bool IsResponseBodyComplete() const OVERRIDE; |
| 65 virtual bool CanFindEndOfResponse() const OVERRIDE; | 65 virtual bool CanFindEndOfResponse() const OVERRIDE; |
| 66 virtual bool IsMoreDataBuffered() const OVERRIDE; | 66 virtual bool IsMoreDataBuffered() const OVERRIDE; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 bool waiting_for_chunk_; | 159 bool waiting_for_chunk_; |
| 160 | 160 |
| 161 bool send_last_chunk_; | 161 bool send_last_chunk_; |
| 162 | 162 |
| 163 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); | 163 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); |
| 164 }; | 164 }; |
| 165 | 165 |
| 166 } // namespace net | 166 } // namespace net |
| 167 | 167 |
| 168 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ | 168 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ |
| OLD | NEW |