| 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 2448 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2459       std::min(kMaxDelayedAckTimeMs, kMinRetransmissionTimeMs / 2)); | 2459       std::min(kMaxDelayedAckTimeMs, kMinRetransmissionTimeMs / 2)); | 
| 2460 } | 2460 } | 
| 2461 | 2461 | 
| 2462 void QuicConnection::CheckIfApplicationLimited() { | 2462 void QuicConnection::CheckIfApplicationLimited() { | 
| 2463   if (queued_packets_.empty() && | 2463   if (queued_packets_.empty() && | 
| 2464       !sent_packet_manager_.HasPendingRetransmissions() && | 2464       !sent_packet_manager_.HasPendingRetransmissions() && | 
| 2465       !visitor_->WillingAndAbleToWrite()) { | 2465       !visitor_->WillingAndAbleToWrite()) { | 
| 2466     sent_packet_manager_.OnApplicationLimited(); | 2466     sent_packet_manager_.OnApplicationLimited(); | 
| 2467   } | 2467   } | 
| 2468 } | 2468 } | 
|  | 2469 #undef ENDPOINT | 
| 2469 | 2470 | 
| 2470 void QuicConnection::SetStreamNotifier( | 2471 void QuicConnection::SetStreamNotifier( | 
| 2471     StreamNotifierInterface* stream_notifier) { | 2472     StreamNotifierInterface* stream_notifier) { | 
| 2472   sent_packet_manager_.SetStreamNotifier(stream_notifier); | 2473   sent_packet_manager_.SetStreamNotifier(stream_notifier); | 
| 2473 } | 2474 } | 
| 2474 | 2475 | 
| 2475 void QuicConnection::SetDataProducer( | 2476 void QuicConnection::SetDataProducer( | 
| 2476     QuicStreamFrameDataProducer* data_producer) { | 2477     QuicStreamFrameDataProducer* data_producer) { | 
| 2477   framer_.set_data_producer(data_producer); | 2478   framer_.set_data_producer(data_producer); | 
| 2478 } | 2479 } | 
| 2479 | 2480 | 
| 2480 }  // namespace net | 2481 }  // namespace net | 
| OLD | NEW | 
|---|