diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/mojo/mojo_watcher.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/mojo/mojo_watcher.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/core/mojo/mojo_watcher.h b/chromium/third_party/blink/renderer/core/mojo/mojo_watcher.h index c1ce045f924..a83e72da10e 100644 --- a/chromium/third_party/blink/renderer/core/mojo/mojo_watcher.h +++ b/chromium/third_party/blink/renderer/core/mojo/mojo_watcher.h @@ -10,6 +10,11 @@ #include "third_party/blink/renderer/bindings/core/v8/active_script_wrappable.h" #include "third_party/blink/renderer/core/execution_context/execution_context_lifecycle_observer.h" #include "third_party/blink/renderer/platform/bindings/script_wrappable.h" +#include "third_party/blink/renderer/platform/heap/self_keep_alive.h" + +namespace base { +class SingleThreadTaskRunner; +} // namespace base namespace blink { @@ -50,6 +55,7 @@ class MojoWatcher final : public ScriptWrappable, static void OnHandleReady(const MojoTrapEvent*); void RunReadyCallback(MojoResult); + SelfKeepAlive<MojoWatcher> keep_alive_{PERSISTENT_FROM_HERE}; scoped_refptr<base::SingleThreadTaskRunner> task_runner_; Member<V8MojoWatchCallback> callback_; mojo::ScopedTrapHandle trap_handle_; |