| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/crypto/source_address_token.h" | 5 #include "net/quic/crypto/source_address_token.h" |
| 6 | 6 |
| 7 #include <vector> | |
| 8 | |
| 9 #include "base/strings/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/strings/string_split.h" | 8 #include "base/strings/string_split.h" |
| 11 | 9 |
| 12 using std::string; | 10 using std::string; |
| 13 using std::vector; | |
| 14 | 11 |
| 15 namespace net { | 12 namespace net { |
| 16 | 13 |
| 17 CachedNetworkParameters::CachedNetworkParameters() | 14 CachedNetworkParameters::CachedNetworkParameters() |
| 18 : bandwidth_estimate_bytes_per_second_(0), | 15 : bandwidth_estimate_bytes_per_second_(0), |
| 19 max_bandwidth_estimate_bytes_per_second_(0), | 16 max_bandwidth_estimate_bytes_per_second_(0), |
| 20 max_bandwidth_timestamp_seconds_(0), | 17 max_bandwidth_timestamp_seconds_(0), |
| 21 min_rtt_ms_(0), | 18 min_rtt_ms_(0), |
| 22 previous_connection_state_(0), | 19 previous_connection_state_(0), |
| 23 timestamp_(0) { | 20 timestamp_(0) { |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 83 |
| 87 ip_.assign(&plaintext[1], ip_len); | 84 ip_.assign(&plaintext[1], ip_len); |
| 88 timestamp_ = timestamp; | 85 timestamp_ = timestamp; |
| 89 | 86 |
| 90 // TODO(rtenneti): Implement parsing of optional CachedNetworkParameters when | 87 // TODO(rtenneti): Implement parsing of optional CachedNetworkParameters when |
| 91 // they are used. | 88 // they are used. |
| 92 return true; | 89 return true; |
| 93 } | 90 } |
| 94 | 91 |
| 95 } // namespace net | 92 } // namespace net |
| OLD | NEW |