Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 26 class IOBuffer; | 26 class IOBuffer; |
| 27 class SpdySession; | 27 class SpdySession; |
| 28 class UploadData; | 28 class UploadData; |
| 29 class UploadDataStream; | 29 class UploadDataStream; |
| 30 | 30 |
| 31 // The SpdyHttpStream is a HTTP-specific type of stream known to a SpdySession. | 31 // The SpdyHttpStream is a HTTP-specific type of stream known to a SpdySession. |
| 32 class SpdyHttpStream : public SpdyStream::Delegate, public HttpStream { | 32 class SpdyHttpStream : public SpdyStream::Delegate, public HttpStream { |
| 33 public: | 33 public: |
| 34 // SpdyHttpStream constructor | 34 // SpdyHttpStream constructor |
| 35 SpdyHttpStream(SpdySession* spdy_session, bool direct); | 35 SpdyHttpStream(SpdySession* spdy_session, bool direct); |
| 36 // Constructs a SpdyHttpStream that wraps an existing SpdyStream. | |
| 37 SpdyHttpStream(SpdyStream* spdy_stream); | |
|
vandebo (ex-Chrome)
2010/12/04 00:30:37
explicit
Ryan Hamilton
2010/12/09 21:19:35
Done.
| |
| 36 virtual ~SpdyHttpStream(); | 38 virtual ~SpdyHttpStream(); |
| 37 | 39 |
| 38 SpdyStream* stream() { return stream_.get(); } | 40 SpdyStream* stream() { return stream_.get(); } |
| 39 | 41 |
| 40 // =================================================== | 42 // =================================================== |
| 41 // HttpStream methods: | 43 // HttpStream methods: |
| 42 | 44 |
| 43 // Initialize stream. Must be called before calling SendRequest(). | 45 // Initialize stream. Must be called before calling SendRequest(). |
| 44 virtual int InitializeStream(const HttpRequestInfo* request_info, | 46 virtual int InitializeStream(const HttpRequestInfo* request_info, |
| 45 const BoundNetLog& net_log, | 47 const BoundNetLog& net_log, |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 180 | 182 |
| 181 // Is this spdy stream direct to the origin server (or to a proxy). | 183 // Is this spdy stream direct to the origin server (or to a proxy). |
| 182 bool direct_; | 184 bool direct_; |
| 183 | 185 |
| 184 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); | 186 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); |
| 185 }; | 187 }; |
| 186 | 188 |
| 187 } // namespace net | 189 } // namespace net |
| 188 | 190 |
| 189 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ | 191 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ |
| OLD | NEW |