diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/wake_lock/wake_lock_manager.h')
-rw-r--r-- | chromium/third_party/blink/renderer/modules/wake_lock/wake_lock_manager.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/chromium/third_party/blink/renderer/modules/wake_lock/wake_lock_manager.h b/chromium/third_party/blink/renderer/modules/wake_lock/wake_lock_manager.h index 32efa029dee..1375d9e5292 100644 --- a/chromium/third_party/blink/renderer/modules/wake_lock/wake_lock_manager.h +++ b/chromium/third_party/blink/renderer/modules/wake_lock/wake_lock_manager.h @@ -6,11 +6,12 @@ #define THIRD_PARTY_BLINK_RENDERER_MODULES_WAKE_LOCK_WAKE_LOCK_MANAGER_H_ #include "base/gtest_prod_util.h" -#include "mojo/public/cpp/bindings/remote.h" #include "services/device/public/mojom/wake_lock.mojom-blink-forward.h" #include "third_party/blink/renderer/modules/modules_export.h" #include "third_party/blink/renderer/modules/wake_lock/wake_lock_type.h" #include "third_party/blink/renderer/platform/heap/handle.h" +#include "third_party/blink/renderer/platform/mojo/heap_mojo_remote.h" +#include "third_party/blink/renderer/platform/mojo/heap_mojo_wrapper_mode.h" namespace blink { @@ -30,7 +31,7 @@ class MODULES_EXPORT WakeLockManager final void UnregisterSentinel(WakeLockSentinel*); - void Trace(blink::Visitor* visitor); + void Trace(Visitor* visitor); private: // Handle connection errors from |wake_lock_|. @@ -42,7 +43,9 @@ class MODULES_EXPORT WakeLockManager final // An actual platform WakeLock. If bound, it means there is an active wake // lock for a given type. - mojo::Remote<device::mojom::blink::WakeLock> wake_lock_; + HeapMojoRemote<device::mojom::blink::WakeLock, + HeapMojoWrapperMode::kWithoutContextObserver> + wake_lock_; WakeLockType wake_lock_type_; // ExecutionContext from which we will connect to |wake_lock_service_|. |