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

Side by Side Diff: net/nqe/network_quality_estimator.h

Issue 2024813003: Split SocketWatcher and SocketWatcherFactory out of NQE (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef NET_NQE_NETWORK_QUALITY_ESTIMATOR_H_ 5 #ifndef NET_NQE_NETWORK_QUALITY_ESTIMATOR_H_
6 #define NET_NQE_NETWORK_QUALITY_ESTIMATOR_H_ 6 #define NET_NQE_NETWORK_QUALITY_ESTIMATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest, ObtainOperatingParams); 319 FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest, ObtainOperatingParams);
320 FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest, HalfLifeParam); 320 FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest, HalfLifeParam);
321 FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest, ComputedPercentiles); 321 FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest, ComputedPercentiles);
322 FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest, TestCaching); 322 FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest, TestCaching);
323 FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest, 323 FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest,
324 TestLRUCacheMaximumSize); 324 TestLRUCacheMaximumSize);
325 FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest, TestGetMetricsSince); 325 FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest, TestGetMetricsSince);
326 FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest, 326 FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest,
327 TestExternalEstimateProviderMergeEstimates); 327 TestExternalEstimateProviderMergeEstimates);
328 328
329 class SocketWatcher;
330 class SocketWatcherFactory;
331
332 // Value of round trip time observations is in base::TimeDelta. 329 // Value of round trip time observations is in base::TimeDelta.
333 typedef nqe::internal::Observation<base::TimeDelta> RttObservation; 330 typedef nqe::internal::Observation<base::TimeDelta> RttObservation;
334 typedef nqe::internal::ObservationBuffer<base::TimeDelta> 331 typedef nqe::internal::ObservationBuffer<base::TimeDelta>
335 RttObservationBuffer; 332 RttObservationBuffer;
336 333
337 // Value of throughput observations is in kilobits per second. 334 // Value of throughput observations is in kilobits per second.
338 typedef nqe::internal::Observation<int32_t> ThroughputObservation; 335 typedef nqe::internal::Observation<int32_t> ThroughputObservation;
339 typedef nqe::internal::ObservationBuffer<int32_t> ThroughputObservationBuffer; 336 typedef nqe::internal::ObservationBuffer<int32_t> ThroughputObservationBuffer;
340 337
341 // This does not use a unordered_map or hash_map for code simplicity (key just 338 // This does not use a unordered_map or hash_map for code simplicity (key just
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 base::ThreadChecker thread_checker_; 545 base::ThreadChecker thread_checker_;
549 546
550 base::WeakPtrFactory<NetworkQualityEstimator> weak_ptr_factory_; 547 base::WeakPtrFactory<NetworkQualityEstimator> weak_ptr_factory_;
551 548
552 DISALLOW_COPY_AND_ASSIGN(NetworkQualityEstimator); 549 DISALLOW_COPY_AND_ASSIGN(NetworkQualityEstimator);
553 }; 550 };
554 551
555 } // namespace net 552 } // namespace net
556 553
557 #endif // NET_NQE_NETWORK_QUALITY_ESTIMATOR_H_ 554 #endif // NET_NQE_NETWORK_QUALITY_ESTIMATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698