Index: mojo/edk/system/data_pipe_consumer_dispatcher.h |
diff --git a/mojo/edk/system/data_pipe_consumer_dispatcher.h b/mojo/edk/system/data_pipe_consumer_dispatcher.h |
index 8239b11462f9851793790928ef693eabdd02cbac..bbd8fabdedc6760e84e4db20ea279e1cfba53d9e 100644 |
--- a/mojo/edk/system/data_pipe_consumer_dispatcher.h |
+++ b/mojo/edk/system/data_pipe_consumer_dispatcher.h |
@@ -20,6 +20,7 @@ |
#include "mojo/edk/system/dispatcher.h" |
#include "mojo/edk/system/ports/port_ref.h" |
#include "mojo/edk/system/system_impl_export.h" |
+#include "mojo/edk/system/watcher_set.h" |
namespace mojo { |
namespace edk { |
@@ -43,10 +44,11 @@ class MOJO_SYSTEM_IMPL_EXPORT DataPipeConsumerDispatcher final |
// Dispatcher: |
Type GetType() const override; |
MojoResult Close() override; |
- MojoResult Watch(MojoHandleSignals signals, |
- const Watcher::WatchCallback& callback, |
- uintptr_t context) override; |
- MojoResult CancelWatch(uintptr_t context) override; |
+ MojoResult RegisterWatcher(MojoHandleSignals signals, |
+ const Watcher::WatchCallback& callback, |
+ uintptr_t context) override; |
+ MojoResult ArmWatcher(uintptr_t context) override; |
+ MojoResult UnregisterWatcher(uintptr_t context) override; |
MojoResult ReadData(void* elements, |
uint32_t* num_bytes, |
MojoReadDataFlags flags) override; |
@@ -101,6 +103,7 @@ class MOJO_SYSTEM_IMPL_EXPORT DataPipeConsumerDispatcher final |
mutable base::Lock lock_; |
AwakableList awakable_list_; |
+ WatcherSet watchers_; |
scoped_refptr<PlatformSharedBuffer> shared_ring_buffer_; |
std::unique_ptr<PlatformSharedBufferMapping> ring_buffer_mapping_; |