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

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

Issue 2820423002: Move quic_flags.h from net/quic/core to net/quic/platform and split into api and impl. (Closed)
Patch Set: Created 3 years, 8 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_config.cc ('k') | net/quic/core/quic_connection_test.cc » ('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>
11 #include <iterator> 11 #include <iterator>
12 #include <limits> 12 #include <limits>
13 #include <memory> 13 #include <memory>
14 #include <set> 14 #include <set>
15 #include <utility> 15 #include <utility>
16 16
17 #include "base/format_macros.h" 17 #include "base/format_macros.h"
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/metrics/histogram_macros.h" 19 #include "base/metrics/histogram_macros.h"
20 #include "net/base/net_errors.h" 20 #include "net/base/net_errors.h"
21 #include "net/quic/core/crypto/crypto_protocol.h" 21 #include "net/quic/core/crypto/crypto_protocol.h"
22 #include "net/quic/core/crypto/quic_decrypter.h" 22 #include "net/quic/core/crypto/quic_decrypter.h"
23 #include "net/quic/core/crypto/quic_encrypter.h" 23 #include "net/quic/core/crypto/quic_encrypter.h"
24 #include "net/quic/core/proto/cached_network_parameters.pb.h" 24 #include "net/quic/core/proto/cached_network_parameters.pb.h"
25 #include "net/quic/core/quic_bandwidth.h" 25 #include "net/quic/core/quic_bandwidth.h"
26 #include "net/quic/core/quic_config.h" 26 #include "net/quic/core/quic_config.h"
27 #include "net/quic/core/quic_flags.h"
28 #include "net/quic/core/quic_packet_generator.h" 27 #include "net/quic/core/quic_packet_generator.h"
29 #include "net/quic/core/quic_pending_retransmission.h" 28 #include "net/quic/core/quic_pending_retransmission.h"
30 #include "net/quic/core/quic_utils.h" 29 #include "net/quic/core/quic_utils.h"
31 #include "net/quic/platform/api/quic_bug_tracker.h" 30 #include "net/quic/platform/api/quic_bug_tracker.h"
32 #include "net/quic/platform/api/quic_flag_utils.h" 31 #include "net/quic/platform/api/quic_flag_utils.h"
32 #include "net/quic/platform/api/quic_flags.h"
33 #include "net/quic/platform/api/quic_logging.h" 33 #include "net/quic/platform/api/quic_logging.h"
34 #include "net/quic/platform/api/quic_map_util.h" 34 #include "net/quic/platform/api/quic_map_util.h"
35 #include "net/quic/platform/api/quic_str_cat.h" 35 #include "net/quic/platform/api/quic_str_cat.h"
36 #include "net/quic/platform/api/quic_text_utils.h" 36 #include "net/quic/platform/api/quic_text_utils.h"
37 37
38 using std::string; 38 using std::string;
39 39
40 namespace net { 40 namespace net {
41 41
42 class QuicDecrypter; 42 class QuicDecrypter;
(...skipping 2345 matching lines...) Expand 10 before | Expand all | Expand 10 after
2388 2388
2389 void QuicConnection::CheckIfApplicationLimited() { 2389 void QuicConnection::CheckIfApplicationLimited() {
2390 if (queued_packets_.empty() && 2390 if (queued_packets_.empty() &&
2391 !sent_packet_manager_.HasPendingRetransmissions() && 2391 !sent_packet_manager_.HasPendingRetransmissions() &&
2392 !visitor_->WillingAndAbleToWrite()) { 2392 !visitor_->WillingAndAbleToWrite()) {
2393 sent_packet_manager_.OnApplicationLimited(); 2393 sent_packet_manager_.OnApplicationLimited();
2394 } 2394 }
2395 } 2395 }
2396 2396
2397 } // namespace net 2397 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_config.cc ('k') | net/quic/core/quic_connection_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698