summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/peerconnection/thermal_uma_listener.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/peerconnection/thermal_uma_listener.h')
-rw-r--r--chromium/third_party/blink/renderer/modules/peerconnection/thermal_uma_listener.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/chromium/third_party/blink/renderer/modules/peerconnection/thermal_uma_listener.h b/chromium/third_party/blink/renderer/modules/peerconnection/thermal_uma_listener.h
index a4006a304ca..16e9fd6bcbd 100644
--- a/chromium/third_party/blink/renderer/modules/peerconnection/thermal_uma_listener.h
+++ b/chromium/third_party/blink/renderer/modules/peerconnection/thermal_uma_listener.h
@@ -10,10 +10,10 @@
#include "base/memory/scoped_refptr.h"
#include "base/memory/weak_ptr.h"
#include "base/optional.h"
-#include "base/power_monitor/power_observer.h"
#include "base/synchronization/lock.h"
#include "base/thread_annotations.h"
#include "base/time/time.h"
+#include "third_party/blink/public/mojom/peerconnection/peer_connection_tracker.mojom-blink.h"
#include "third_party/blink/renderer/modules/modules_export.h"
#include "third_party/blink/renderer/platform/wtf/hash_map.h"
@@ -29,8 +29,7 @@ class MODULES_EXPORT ThermalUmaListener {
scoped_refptr<base::SequencedTaskRunner> task_runner);
~ThermalUmaListener() = default;
- void OnThermalMeasurement(
- base::PowerObserver::DeviceThermalState measurement);
+ void OnThermalMeasurement(mojom::blink::DeviceThermalState measurement);
private:
void ReportStats();
@@ -38,8 +37,7 @@ class MODULES_EXPORT ThermalUmaListener {
base::Lock lock_;
scoped_refptr<base::SequencedTaskRunner> task_runner_;
- base::PowerObserver::DeviceThermalState current_thermal_state_
- GUARDED_BY(&lock_);
+ mojom::blink::DeviceThermalState current_thermal_state_ GUARDED_BY(&lock_);
base::WeakPtrFactory<ThermalUmaListener> weak_ptr_factor_;
};