| 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 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 SpdyStream* stream() { return stream_.get(); } | 40 SpdyStream* stream() { return stream_.get(); } |
| 41 | 41 |
| 42 // Cancels any callbacks from being invoked and deletes the stream. | 42 // Cancels any callbacks from being invoked and deletes the stream. |
| 43 void Cancel(); | 43 void Cancel(); |
| 44 | 44 |
| 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 NetLogWithSource& 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 int ReadResponseHeaders(const CompletionCallback& callback) override; | 55 int ReadResponseHeaders(const CompletionCallback& callback) override; |
| 56 int ReadResponseBody(IOBuffer* buf, | 56 int ReadResponseBody(IOBuffer* buf, |
| 57 int buf_len, | 57 int buf_len, |
| 58 const CompletionCallback& callback) override; | 58 const CompletionCallback& callback) override; |
| 59 void Close(bool not_reusable) override; | 59 void Close(bool not_reusable) override; |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 NextProto negotiated_protocol_; | 197 NextProto negotiated_protocol_; |
| 198 | 198 |
| 199 base::WeakPtrFactory<SpdyHttpStream> weak_factory_; | 199 base::WeakPtrFactory<SpdyHttpStream> weak_factory_; |
| 200 | 200 |
| 201 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); | 201 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); |
| 202 }; | 202 }; |
| 203 | 203 |
| 204 } // namespace net | 204 } // namespace net |
| 205 | 205 |
| 206 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ | 206 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ |
| OLD | NEW |