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_QUIC_QUIC_HTTP_STREAM_H_ | 5 #ifndef NET_QUIC_QUIC_HTTP_STREAM_H_ |
6 #define NET_QUIC_QUIC_HTTP_STREAM_H_ | 6 #define NET_QUIC_QUIC_HTTP_STREAM_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... |
41 ~QuicHttpStream() override; | 41 ~QuicHttpStream() override; |
42 | 42 |
43 // HttpStream implementation. | 43 // HttpStream implementation. |
44 int InitializeStream(const HttpRequestInfo* request_info, | 44 int InitializeStream(const HttpRequestInfo* request_info, |
45 RequestPriority priority, | 45 RequestPriority priority, |
46 const BoundNetLog& net_log, | 46 const BoundNetLog& net_log, |
47 const CompletionCallback& callback) override; | 47 const CompletionCallback& callback) override; |
48 int SendRequest(const HttpRequestHeaders& request_headers, | 48 int SendRequest(const HttpRequestHeaders& request_headers, |
49 HttpResponseInfo* response, | 49 HttpResponseInfo* response, |
50 const CompletionCallback& callback) override; | 50 const CompletionCallback& callback) override; |
51 UploadProgress GetUploadProgress() const override; | |
52 int ReadResponseHeaders(const CompletionCallback& callback) override; | 51 int ReadResponseHeaders(const CompletionCallback& callback) override; |
53 int ReadResponseBody(IOBuffer* buf, | 52 int ReadResponseBody(IOBuffer* buf, |
54 int buf_len, | 53 int buf_len, |
55 const CompletionCallback& callback) override; | 54 const CompletionCallback& callback) override; |
56 void Close(bool not_reusable) override; | 55 void Close(bool not_reusable) override; |
57 HttpStream* RenewStreamForAuth() override; | 56 HttpStream* RenewStreamForAuth() override; |
58 bool IsResponseBodyComplete() const override; | 57 bool IsResponseBodyComplete() const override; |
59 bool IsConnectionReused() const override; | 58 bool IsConnectionReused() const override; |
60 void SetConnectionReused() override; | 59 void SetConnectionReused() override; |
61 bool CanReuseConnection() const override; | 60 bool CanReuseConnection() const override; |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 bool in_loop_; | 214 bool in_loop_; |
216 | 215 |
217 base::WeakPtrFactory<QuicHttpStream> weak_factory_; | 216 base::WeakPtrFactory<QuicHttpStream> weak_factory_; |
218 | 217 |
219 DISALLOW_COPY_AND_ASSIGN(QuicHttpStream); | 218 DISALLOW_COPY_AND_ASSIGN(QuicHttpStream); |
220 }; | 219 }; |
221 | 220 |
222 } // namespace net | 221 } // namespace net |
223 | 222 |
224 #endif // NET_QUIC_QUIC_HTTP_STREAM_H_ | 223 #endif // NET_QUIC_QUIC_HTTP_STREAM_H_ |
OLD | NEW |