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> |
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/logging.h" | 18 #include "base/logging.h" |
19 #include "base/macros.h" | 19 #include "base/macros.h" |
20 #include "base/metrics/histogram_macros.h" | 20 #include "base/metrics/histogram_macros.h" |
21 #include "base/stl_util.h" | 21 #include "base/stl_util.h" |
22 #include "net/base/address_family.h" | 22 #include "net/base/address_family.h" |
23 #include "net/base/ip_address.h" | 23 #include "net/base/ip_address.h" |
24 #include "net/base/net_errors.h" | 24 #include "net/base/net_errors.h" |
25 #include "net/quic/core/crypto/crypto_protocol.h" | 25 #include "net/quic/core/crypto/crypto_protocol.h" |
26 #include "net/quic/core/crypto/quic_decrypter.h" | 26 #include "net/quic/core/crypto/quic_decrypter.h" |
27 #include "net/quic/core/crypto/quic_encrypter.h" | 27 #include "net/quic/core/crypto/quic_encrypter.h" |
28 #include "net/quic/core/proto/cached_network_parameters.pb.h" | 28 #include "net/quic/core/proto/cached_network_parameters.pb.h" |
29 #include "net/quic/core/quic_bandwidth.h" | 29 #include "net/quic/core/quic_bandwidth.h" |
30 #include "net/quic/core/quic_bug_tracker.h" | |
31 #include "net/quic/core/quic_config.h" | 30 #include "net/quic/core/quic_config.h" |
32 #include "net/quic/core/quic_flags.h" | 31 #include "net/quic/core/quic_flags.h" |
33 #include "net/quic/core/quic_packet_generator.h" | 32 #include "net/quic/core/quic_packet_generator.h" |
34 #include "net/quic/core/quic_pending_retransmission.h" | 33 #include "net/quic/core/quic_pending_retransmission.h" |
35 #include "net/quic/core/quic_sent_packet_manager.h" | 34 #include "net/quic/core/quic_sent_packet_manager.h" |
36 #include "net/quic/core/quic_utils.h" | 35 #include "net/quic/core/quic_utils.h" |
| 36 #include "net/quic/platform/api/quic_bug_tracker.h" |
37 #include "net/quic/platform/api/quic_str_cat.h" | 37 #include "net/quic/platform/api/quic_str_cat.h" |
38 #include "net/quic/platform/api/quic_text_utils.h" | 38 #include "net/quic/platform/api/quic_text_utils.h" |
39 | 39 |
40 using base::StringPiece; | 40 using base::StringPiece; |
41 using std::string; | 41 using std::string; |
42 | 42 |
43 namespace net { | 43 namespace net { |
44 | 44 |
45 class QuicDecrypter; | 45 class QuicDecrypter; |
46 class QuicEncrypter; | 46 class QuicEncrypter; |
(...skipping 2410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2457 | 2457 |
2458 void QuicConnection::CheckIfApplicationLimited() { | 2458 void QuicConnection::CheckIfApplicationLimited() { |
2459 if (queued_packets_.empty() && | 2459 if (queued_packets_.empty() && |
2460 !sent_packet_manager_->HasPendingRetransmissions() && | 2460 !sent_packet_manager_->HasPendingRetransmissions() && |
2461 !visitor_->WillingAndAbleToWrite()) { | 2461 !visitor_->WillingAndAbleToWrite()) { |
2462 sent_packet_manager_->OnApplicationLimited(); | 2462 sent_packet_manager_->OnApplicationLimited(); |
2463 } | 2463 } |
2464 } | 2464 } |
2465 | 2465 |
2466 } // namespace net | 2466 } // namespace net |
OLD | NEW |