| 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 14 matching lines...) Expand all Loading... |
| 25 struct HttpRequestInfo; | 25 struct HttpRequestInfo; |
| 26 class HttpResponseInfo; | 26 class HttpResponseInfo; |
| 27 class IOBuffer; | 27 class IOBuffer; |
| 28 class SpdySession; | 28 class SpdySession; |
| 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_EXPORT_PRIVATE SpdyHttpStream : public SpdyStream::Delegate, | 32 class NET_EXPORT_PRIVATE SpdyHttpStream : public SpdyStream::Delegate, |
| 33 public HttpStream { | 33 public HttpStream { |
| 34 public: | 34 public: |
| 35 static const size_t kRequestBodyBufferSize; |
| 35 // |spdy_session| must not be NULL. | 36 // |spdy_session| must not be NULL. |
| 36 SpdyHttpStream(const base::WeakPtr<SpdySession>& spdy_session, bool direct); | 37 SpdyHttpStream(const base::WeakPtr<SpdySession>& spdy_session, bool direct); |
| 37 ~SpdyHttpStream() override; | 38 ~SpdyHttpStream() override; |
| 38 | 39 |
| 39 SpdyStream* stream() { return stream_.get(); } | 40 SpdyStream* stream() { return stream_.get(); } |
| 40 | 41 |
| 41 // Cancels any callbacks from being invoked and deletes the stream. | 42 // Cancels any callbacks from being invoked and deletes the stream. |
| 42 void Cancel(); | 43 void Cancel(); |
| 43 | 44 |
| 44 // HttpStream implementation. | 45 // HttpStream implementation. |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 bool direct_; | 178 bool direct_; |
| 178 | 179 |
| 179 base::WeakPtrFactory<SpdyHttpStream> weak_factory_; | 180 base::WeakPtrFactory<SpdyHttpStream> weak_factory_; |
| 180 | 181 |
| 181 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); | 182 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); |
| 182 }; | 183 }; |
| 183 | 184 |
| 184 } // namespace net | 185 } // namespace net |
| 185 | 186 |
| 186 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ | 187 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ |
| OLD | NEW |