| 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/core/quic_connection.h" | 5 #include "net/quic/core/quic_connection.h" |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 #include <sys/types.h> | 8 #include <sys/types.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 2417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2428 std::min(kMaxDelayedAckTimeMs, kMinRetransmissionTimeMs / 2)); | 2428 std::min(kMaxDelayedAckTimeMs, kMinRetransmissionTimeMs / 2)); |
| 2429 } | 2429 } |
| 2430 | 2430 |
| 2431 void QuicConnection::CheckIfApplicationLimited() { | 2431 void QuicConnection::CheckIfApplicationLimited() { |
| 2432 if (queued_packets_.empty() && | 2432 if (queued_packets_.empty() && |
| 2433 !sent_packet_manager_.HasPendingRetransmissions() && | 2433 !sent_packet_manager_.HasPendingRetransmissions() && |
| 2434 !visitor_->WillingAndAbleToWrite()) { | 2434 !visitor_->WillingAndAbleToWrite()) { |
| 2435 sent_packet_manager_.OnApplicationLimited(); | 2435 sent_packet_manager_.OnApplicationLimited(); |
| 2436 } | 2436 } |
| 2437 } | 2437 } |
| 2438 #undef ENDPOINT |
| 2438 | 2439 |
| 2439 void QuicConnection::SetStreamNotifier( | 2440 void QuicConnection::SetStreamNotifier( |
| 2440 StreamNotifierInterface* stream_notifier) { | 2441 StreamNotifierInterface* stream_notifier) { |
| 2441 sent_packet_manager_.SetStreamNotifier(stream_notifier); | 2442 sent_packet_manager_.SetStreamNotifier(stream_notifier); |
| 2442 } | 2443 } |
| 2443 | 2444 |
| 2444 void QuicConnection::SetDataProducer( | 2445 void QuicConnection::SetDataProducer( |
| 2445 QuicStreamFrameDataProducer* data_producer) { | 2446 QuicStreamFrameDataProducer* data_producer) { |
| 2446 framer_.set_data_producer(data_producer); | 2447 framer_.set_data_producer(data_producer); |
| 2447 } | 2448 } |
| 2448 | 2449 |
| 2449 } // namespace net | 2450 } // namespace net |
| OLD | NEW |