| 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_STREAM_H_ | 5 #ifndef NET_SPDY_SPDY_STREAM_H_ |
| 6 #define NET_SPDY_SPDY_STREAM_H_ | 6 #define NET_SPDY_SPDY_STREAM_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 int response_status() const { return response_status_; } | 227 int response_status() const { return response_status_; } |
| 228 | 228 |
| 229 // Returns true if the URL for this stream is known. | 229 // Returns true if the URL for this stream is known. |
| 230 bool HasUrl() const; | 230 bool HasUrl() const; |
| 231 | 231 |
| 232 // Get the URL associated with this stream. Only valid when has_url() is | 232 // Get the URL associated with this stream. Only valid when has_url() is |
| 233 // true. | 233 // true. |
| 234 GURL GetUrl() const; | 234 GURL GetUrl() const; |
| 235 | 235 |
| 236 // ChunkCallback methods. | 236 // ChunkCallback methods. |
| 237 virtual void OnChunkAvailable(); | 237 virtual void OnChunkAvailable() OVERRIDE; |
| 238 | 238 |
| 239 private: | 239 private: |
| 240 enum State { | 240 enum State { |
| 241 STATE_NONE, | 241 STATE_NONE, |
| 242 STATE_SEND_HEADERS, | 242 STATE_SEND_HEADERS, |
| 243 STATE_SEND_HEADERS_COMPLETE, | 243 STATE_SEND_HEADERS_COMPLETE, |
| 244 STATE_SEND_BODY, | 244 STATE_SEND_BODY, |
| 245 STATE_SEND_BODY_COMPLETE, | 245 STATE_SEND_BODY_COMPLETE, |
| 246 STATE_WAITING_FOR_RESPONSE, | 246 STATE_WAITING_FOR_RESPONSE, |
| 247 STATE_OPEN, | 247 STATE_OPEN, |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 int recv_bytes_; | 322 int recv_bytes_; |
| 323 // Data received before delegate is attached. | 323 // Data received before delegate is attached. |
| 324 std::vector<scoped_refptr<IOBufferWithSize> > pending_buffers_; | 324 std::vector<scoped_refptr<IOBufferWithSize> > pending_buffers_; |
| 325 | 325 |
| 326 DISALLOW_COPY_AND_ASSIGN(SpdyStream); | 326 DISALLOW_COPY_AND_ASSIGN(SpdyStream); |
| 327 }; | 327 }; |
| 328 | 328 |
| 329 } // namespace net | 329 } // namespace net |
| 330 | 330 |
| 331 #endif // NET_SPDY_SPDY_STREAM_H_ | 331 #endif // NET_SPDY_SPDY_STREAM_H_ |
| OLD | NEW |