| 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_STREAM_H_ | 5 #ifndef NET_SPDY_SPDY_STREAM_H_ |
| 6 #define NET_SPDY_SPDY_STREAM_H_ | 6 #define NET_SPDY_SPDY_STREAM_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 // Detach the delegate from the stream, which must not yet be | 123 // Detach the delegate from the stream, which must not yet be |
| 124 // closed, and cancel it. | 124 // closed, and cancel it. |
| 125 void DetachDelegate(); | 125 void DetachDelegate(); |
| 126 | 126 |
| 127 SpdyStreamType type() const { return type_; } | 127 SpdyStreamType type() const { return type_; } |
| 128 | 128 |
| 129 SpdyStreamId stream_id() const { return stream_id_; } | 129 SpdyStreamId stream_id() const { return stream_id_; } |
| 130 void set_stream_id(SpdyStreamId stream_id) { stream_id_ = stream_id; } | 130 void set_stream_id(SpdyStreamId stream_id) { stream_id_ = stream_id; } |
| 131 | 131 |
| 132 // TODO(akalin): Remove these two functions. |
| 132 bool response_received() const { return response_received_; } | 133 bool response_received() const { return response_received_; } |
| 133 void set_response_received() { response_received_ = true; } | 134 void set_response_received() { response_received_ = true; } |
| 134 | 135 |
| 135 const std::string& path() const { return path_; } | 136 const std::string& path() const { return path_; } |
| 136 | 137 |
| 137 RequestPriority priority() const { return priority_; } | 138 RequestPriority priority() const { return priority_; } |
| 138 | 139 |
| 139 int32 send_window_size() const { return send_window_size_; } | 140 int32 send_window_size() const { return send_window_size_; } |
| 140 | 141 |
| 141 int32 recv_window_size() const { return recv_window_size_; } | 142 int32 recv_window_size() const { return recv_window_size_; } |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 // When OnFrameWriteComplete() is called, these variables are set. | 467 // When OnFrameWriteComplete() is called, these variables are set. |
| 467 SpdyFrameType just_completed_frame_type_; | 468 SpdyFrameType just_completed_frame_type_; |
| 468 size_t just_completed_frame_size_; | 469 size_t just_completed_frame_size_; |
| 469 | 470 |
| 470 DISALLOW_COPY_AND_ASSIGN(SpdyStream); | 471 DISALLOW_COPY_AND_ASSIGN(SpdyStream); |
| 471 }; | 472 }; |
| 472 | 473 |
| 473 } // namespace net | 474 } // namespace net |
| 474 | 475 |
| 475 #endif // NET_SPDY_SPDY_STREAM_H_ | 476 #endif // NET_SPDY_SPDY_STREAM_H_ |
| OLD | NEW |