| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 MojoWatcher_h | 5 #ifndef MojoWatcher_h |
| 6 #define MojoWatcher_h | 6 #define MojoWatcher_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | |
| 9 #include "bindings/core/v8/TraceWrapperMember.h" | 8 #include "bindings/core/v8/TraceWrapperMember.h" |
| 10 #include "core/dom/ContextLifecycleObserver.h" | 9 #include "core/dom/ContextLifecycleObserver.h" |
| 11 #include "mojo/public/cpp/system/handle.h" | 10 #include "mojo/public/cpp/system/handle.h" |
| 12 #include "mojo/public/cpp/system/watcher.h" | 11 #include "mojo/public/cpp/system/watcher.h" |
| 13 #include "platform/bindings/ActiveScriptWrappable.h" | 12 #include "platform/bindings/ActiveScriptWrappable.h" |
| 13 #include "platform/bindings/ScriptWrappable.h" |
| 14 | 14 |
| 15 namespace blink { | 15 namespace blink { |
| 16 | 16 |
| 17 class ExecutionContext; | 17 class ExecutionContext; |
| 18 class MojoHandleSignals; | 18 class MojoHandleSignals; |
| 19 class MojoWatchCallback; | 19 class MojoWatchCallback; |
| 20 | 20 |
| 21 class MojoWatcher final : public GarbageCollectedFinalized<MojoWatcher>, | 21 class MojoWatcher final : public GarbageCollectedFinalized<MojoWatcher>, |
| 22 public ActiveScriptWrappable<MojoWatcher>, | 22 public ActiveScriptWrappable<MojoWatcher>, |
| 23 public ScriptWrappable, | 23 public ScriptWrappable, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 RefPtr<WebTaskRunner> task_runner_; | 59 RefPtr<WebTaskRunner> task_runner_; |
| 60 TraceWrapperMember<MojoWatchCallback> callback_; | 60 TraceWrapperMember<MojoWatchCallback> callback_; |
| 61 mojo::ScopedWatcherHandle watcher_handle_; | 61 mojo::ScopedWatcherHandle watcher_handle_; |
| 62 mojo::Handle handle_; | 62 mojo::Handle handle_; |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 } // namespace blink | 65 } // namespace blink |
| 66 | 66 |
| 67 #endif // MojoWatcher_h | 67 #endif // MojoWatcher_h |
| OLD | NEW |