Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: net/quic/core/quic_connection.cc

Issue 2915873003: This QUIC change includes: (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/core/quic_connection.h ('k') | net/quic/core/quic_flags_list.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/quic/core/quic_connection.h ('k') | net/quic/core/quic_flags_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698