| 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 2413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2424 } | 2424 } |
| 2425 | 2425 |
| 2426 void QuicConnection::CheckIfApplicationLimited() { | 2426 void QuicConnection::CheckIfApplicationLimited() { |
| 2427 if (queued_packets_.empty() && | 2427 if (queued_packets_.empty() && |
| 2428 !sent_packet_manager_.HasPendingRetransmissions() && | 2428 !sent_packet_manager_.HasPendingRetransmissions() && |
| 2429 !visitor_->WillingAndAbleToWrite()) { | 2429 !visitor_->WillingAndAbleToWrite()) { |
| 2430 sent_packet_manager_.OnApplicationLimited(); | 2430 sent_packet_manager_.OnApplicationLimited(); |
| 2431 } | 2431 } |
| 2432 } | 2432 } |
| 2433 | 2433 |
| 2434 void QuicConnection::SetStreamNotifier( |
| 2435 StreamNotifierInterface* stream_notifier) { |
| 2436 sent_packet_manager_.SetStreamNotifier(stream_notifier); |
| 2437 } |
| 2438 |
| 2434 } // namespace net | 2439 } // namespace net |
| OLD | NEW |