| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 // HttpStream implementation. | 45 // HttpStream implementation. |
| 46 | 46 |
| 47 int InitializeStream(const HttpRequestInfo* request_info, | 47 int InitializeStream(const HttpRequestInfo* request_info, |
| 48 RequestPriority priority, | 48 RequestPriority priority, |
| 49 const BoundNetLog& net_log, | 49 const BoundNetLog& net_log, |
| 50 const CompletionCallback& callback) override; | 50 const CompletionCallback& callback) override; |
| 51 | 51 |
| 52 int SendRequest(const HttpRequestHeaders& headers, | 52 int SendRequest(const HttpRequestHeaders& headers, |
| 53 HttpResponseInfo* response, | 53 HttpResponseInfo* response, |
| 54 const CompletionCallback& callback) override; | 54 const CompletionCallback& callback) override; |
| 55 UploadProgress GetUploadProgress() const override; | |
| 56 int ReadResponseHeaders(const CompletionCallback& callback) override; | 55 int ReadResponseHeaders(const CompletionCallback& callback) override; |
| 57 int ReadResponseBody(IOBuffer* buf, | 56 int ReadResponseBody(IOBuffer* buf, |
| 58 int buf_len, | 57 int buf_len, |
| 59 const CompletionCallback& callback) override; | 58 const CompletionCallback& callback) override; |
| 60 void Close(bool not_reusable) override; | 59 void Close(bool not_reusable) override; |
| 61 HttpStream* RenewStreamForAuth() override; | 60 HttpStream* RenewStreamForAuth() override; |
| 62 bool IsResponseBodyComplete() const override; | 61 bool IsResponseBodyComplete() const override; |
| 63 | 62 |
| 64 // Must not be called if a NULL SpdySession was pssed into the | 63 // Must not be called if a NULL SpdySession was pssed into the |
| 65 // constructor. | 64 // constructor. |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 NextProto negotiated_protocol_; | 196 NextProto negotiated_protocol_; |
| 198 | 197 |
| 199 base::WeakPtrFactory<SpdyHttpStream> weak_factory_; | 198 base::WeakPtrFactory<SpdyHttpStream> weak_factory_; |
| 200 | 199 |
| 201 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); | 200 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); |
| 202 }; | 201 }; |
| 203 | 202 |
| 204 } // namespace net | 203 } // namespace net |
| 205 | 204 |
| 206 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ | 205 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ |
| OLD | NEW |