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 <list> | 8 #include <list> |
9 | 9 |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 // The QuicHttpStream is a QUIC-specific HttpStream subclass. It holds a | 22 // The QuicHttpStream is a QUIC-specific HttpStream subclass. It holds a |
23 // non-owning pointer to a QuicReliableClientStream which it uses to | 23 // non-owning pointer to a QuicReliableClientStream which it uses to |
24 // send and receive data. | 24 // send and receive data. |
25 class NET_EXPORT_PRIVATE QuicHttpStream : | 25 class NET_EXPORT_PRIVATE QuicHttpStream : |
26 public QuicClientSession::Observer, | 26 public QuicClientSession::Observer, |
27 public QuicReliableClientStream::Delegate, | 27 public QuicReliableClientStream::Delegate, |
28 public HttpStream { | 28 public HttpStream { |
29 public: | 29 public: |
30 explicit QuicHttpStream(const base::WeakPtr<QuicClientSession>& session); | 30 explicit QuicHttpStream(const base::WeakPtr<QuicClientSession>& session); |
31 | 31 |
32 virtual ~QuicHttpStream(); | 32 virtual ~QuicHttpStream() OVERRIDE; |
33 | 33 |
34 // HttpStream implementation. | 34 // HttpStream implementation. |
35 virtual int InitializeStream(const HttpRequestInfo* request_info, | 35 virtual int InitializeStream(const HttpRequestInfo* request_info, |
36 RequestPriority priority, | 36 RequestPriority priority, |
37 const BoundNetLog& net_log, | 37 const BoundNetLog& net_log, |
38 const CompletionCallback& callback) OVERRIDE; | 38 const CompletionCallback& callback) OVERRIDE; |
39 virtual int SendRequest(const HttpRequestHeaders& request_headers, | 39 virtual int SendRequest(const HttpRequestHeaders& request_headers, |
40 HttpResponseInfo* response, | 40 HttpResponseInfo* response, |
41 const CompletionCallback& callback) OVERRIDE; | 41 const CompletionCallback& callback) OVERRIDE; |
42 virtual UploadProgress GetUploadProgress() const OVERRIDE; | 42 virtual UploadProgress GetUploadProgress() const OVERRIDE; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 scoped_refptr<DrainableIOBuffer> request_body_buf_; | 158 scoped_refptr<DrainableIOBuffer> request_body_buf_; |
159 | 159 |
160 BoundNetLog stream_net_log_; | 160 BoundNetLog stream_net_log_; |
161 | 161 |
162 base::WeakPtrFactory<QuicHttpStream> weak_factory_; | 162 base::WeakPtrFactory<QuicHttpStream> weak_factory_; |
163 }; | 163 }; |
164 | 164 |
165 } // namespace net | 165 } // namespace net |
166 | 166 |
167 #endif // NET_QUIC_QUIC_HTTP_STREAM_H_ | 167 #endif // NET_QUIC_QUIC_HTTP_STREAM_H_ |
OLD | NEW |