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

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

Issue 2081493002: Obtain WiFi SSID on Android using Android APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix 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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 // Larger size may affect performance. 378 // Larger size may affect performance.
379 static const size_t kMaximumNetworkQualityCacheSize = 10; 379 static const size_t kMaximumNetworkQualityCacheSize = 10;
380 380
381 // Returns the RTT value to be used when the valid RTT is unavailable. Readers 381 // Returns the RTT value to be used when the valid RTT is unavailable. Readers
382 // should discard RTT if it is set to the value returned by |InvalidRTT()|. 382 // should discard RTT if it is set to the value returned by |InvalidRTT()|.
383 static const base::TimeDelta InvalidRTT(); 383 static const base::TimeDelta InvalidRTT();
384 384
385 // Records UMA when there is a change in connection type. 385 // Records UMA when there is a change in connection type.
386 void RecordMetricsOnConnectionTypeChanged() const; 386 void RecordMetricsOnConnectionTypeChanged() const;
387 387
388 // Records UMA on whether the network ID was available or not. Called right
389 // after a network change event.
390 void RecordNetworkIDAvailability() const;
391
388 // Records UMA on main frame requests. 392 // Records UMA on main frame requests.
389 void RecordMetricsOnMainFrameRequest() const; 393 void RecordMetricsOnMainFrameRequest() const;
390 394
391 // Records a downstream throughput observation to the observation buffer if 395 // Records a downstream throughput observation to the observation buffer if
392 // a valid observation is available. |downstream_kbps| is the downstream 396 // a valid observation is available. |downstream_kbps| is the downstream
393 // throughput in kilobits per second. 397 // throughput in kilobits per second.
394 void OnNewThroughputObservationAvailable(int32_t downstream_kbps); 398 void OnNewThroughputObservationAvailable(int32_t downstream_kbps);
395 399
396 // Notifies |this| of a new transport layer RTT. 400 // Notifies |this| of a new transport layer RTT.
397 void OnUpdatedRTTAvailable(SocketPerformanceWatcherFactory::Protocol protocol, 401 void OnUpdatedRTTAvailable(SocketPerformanceWatcherFactory::Protocol protocol,
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 base::ThreadChecker thread_checker_; 597 base::ThreadChecker thread_checker_;
594 598
595 base::WeakPtrFactory<NetworkQualityEstimator> weak_ptr_factory_; 599 base::WeakPtrFactory<NetworkQualityEstimator> weak_ptr_factory_;
596 600
597 DISALLOW_COPY_AND_ASSIGN(NetworkQualityEstimator); 601 DISALLOW_COPY_AND_ASSIGN(NetworkQualityEstimator);
598 }; 602 };
599 603
600 } // namespace net 604 } // namespace net
601 605
602 #endif // NET_NQE_NETWORK_QUALITY_ESTIMATOR_H_ 606 #endif // NET_NQE_NETWORK_QUALITY_ESTIMATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698