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