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 #include "net/quic/reliable_quic_stream.h" | 5 #include "net/quic/reliable_quic_stream.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "net/quic/iovector.h" | 8 #include "net/quic/iovector.h" |
9 #include "net/quic/quic_flow_controller.h" | 9 #include "net/quic/quic_flow_controller.h" |
10 #include "net/quic/quic_session.h" | 10 #include "net/quic/quic_session.h" |
11 #include "net/quic/quic_write_blocked_list.h" | 11 #include "net/quic/quic_write_blocked_list.h" |
12 | 12 |
13 using base::StringPiece; | 13 using base::StringPiece; |
14 using std::min; | 14 using std::min; |
| 15 using std::string; |
15 | 16 |
16 namespace net { | 17 namespace net { |
17 | 18 |
18 #define ENDPOINT (is_server_ ? "Server: " : " Client: ") | 19 #define ENDPOINT (is_server_ ? "Server: " : " Client: ") |
19 | 20 |
20 namespace { | 21 namespace { |
21 | 22 |
22 struct iovec MakeIovec(StringPiece data) { | 23 struct iovec MakeIovec(StringPiece data) { |
23 struct iovec iov = {const_cast<char*>(data.data()), | 24 struct iovec iov = {const_cast<char*>(data.data()), |
24 static_cast<size_t>(data.size())}; | 25 static_cast<size_t>(data.size())}; |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 | 541 |
541 bool ReliableQuicStream::IsFlowControlBlocked() { | 542 bool ReliableQuicStream::IsFlowControlBlocked() { |
542 if (flow_controller_.IsBlocked()) { | 543 if (flow_controller_.IsBlocked()) { |
543 return true; | 544 return true; |
544 } | 545 } |
545 return stream_contributes_to_connection_flow_control_ && | 546 return stream_contributes_to_connection_flow_control_ && |
546 connection_flow_controller_->IsBlocked(); | 547 connection_flow_controller_->IsBlocked(); |
547 } | 548 } |
548 | 549 |
549 } // namespace net | 550 } // namespace net |
OLD | NEW |