OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 11 matching lines...) Expand all Loading... |
22 | 22 |
23 namespace net { | 23 namespace net { |
24 | 24 |
25 class HttpResponseInfo; | 25 class HttpResponseInfo; |
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 NET_TEST SpdyHttpStream : public SpdyStream::Delegate, public HttpStream { | 32 class NET_EXPORT_PRIVATE SpdyHttpStream : public SpdyStream::Delegate, |
| 33 public HttpStream { |
33 public: | 34 public: |
34 SpdyHttpStream(SpdySession* spdy_session, bool direct); | 35 SpdyHttpStream(SpdySession* spdy_session, bool direct); |
35 virtual ~SpdyHttpStream(); | 36 virtual ~SpdyHttpStream(); |
36 | 37 |
37 // Initializes this SpdyHttpStream by wraping an existing SpdyStream. | 38 // Initializes this SpdyHttpStream by wraping an existing SpdyStream. |
38 void InitializeWithExistingStream(SpdyStream* spdy_stream); | 39 void InitializeWithExistingStream(SpdyStream* spdy_stream); |
39 | 40 |
40 SpdyStream* stream() { return stream_.get(); } | 41 SpdyStream* stream() { return stream_.get(); } |
41 | 42 |
42 // Cancels any callbacks from being invoked and deletes the stream. | 43 // Cancels any callbacks from being invoked and deletes the stream. |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 bool direct_; | 134 bool direct_; |
134 | 135 |
135 bool send_last_chunk_; | 136 bool send_last_chunk_; |
136 | 137 |
137 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); | 138 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); |
138 }; | 139 }; |
139 | 140 |
140 } // namespace net | 141 } // namespace net |
141 | 142 |
142 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ | 143 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ |
OLD | NEW |