Home
last modified time | relevance | path

Searched refs:SimpleWatcher (Results 1 – 21 of 21) sorted by relevance

/external/libchrome/mojo/public/cpp/system/tests/
Dsimple_watcher_unittest.cc29 SimpleWatcher::ReadyCallback OnReady(Handler f) { in OnReady()
33 SimpleWatcher::ReadyCallback NotReached() { in NotReached()
54 SimpleWatcher b_watcher(FROM_HERE, SimpleWatcher::ArmingPolicy::AUTOMATIC, in TEST_F()
78 SimpleWatcher b_watcher(FROM_HERE, SimpleWatcher::ArmingPolicy::MANUAL, in TEST_F()
90 SimpleWatcher watcher(FROM_HERE, SimpleWatcher::ArmingPolicy::AUTOMATIC); in TEST_F()
125 SimpleWatcher b_watcher(FROM_HERE, SimpleWatcher::ArmingPolicy::AUTOMATIC, in TEST_F()
138 SimpleWatcher b_watcher(FROM_HERE, SimpleWatcher::ArmingPolicy::AUTOMATIC, in TEST_F()
161 SimpleWatcher b_watcher(FROM_HERE, SimpleWatcher::ArmingPolicy::AUTOMATIC, in TEST_F()
184 SimpleWatcher b_watcher(FROM_HERE, SimpleWatcher::ArmingPolicy::AUTOMATIC, in TEST_F()
206 SimpleWatcher b_watcher(FROM_HERE, SimpleWatcher::ArmingPolicy::AUTOMATIC, in TEST_F()
[all …]
Dscope_to_message_pipe_unittest.cc54 SimpleWatcher watcher(FROM_HERE, SimpleWatcher::ArmingPolicy::AUTOMATIC); in TEST_F()
Dstring_data_pipe_producer_unittest.cc34 SimpleWatcher::ArmingPolicy::AUTOMATIC, in DataPipeReader()
72 SimpleWatcher watcher_;
Dfile_data_pipe_producer_unittest.cc39 SimpleWatcher::ArmingPolicy::AUTOMATIC, in DataPipeReader()
78 SimpleWatcher watcher_;
/external/libchrome/mojo/public/cpp/system/
Dsimple_watcher.cc21 class SimpleWatcher::Context : public base::RefCountedThreadSafe<Context> {
26 base::WeakPtr<SimpleWatcher> watcher, in Create()
73 Context(base::WeakPtr<SimpleWatcher> weak_watcher, in Context()
108 FROM_HERE, base::Bind(&SimpleWatcher::OnHandleReady, weak_watcher_, in Notify()
113 const base::WeakPtr<SimpleWatcher> weak_watcher_;
123 SimpleWatcher::SimpleWatcher(const base::Location& from_here, in SimpleWatcher() function in mojo::SimpleWatcher
138 SimpleWatcher::~SimpleWatcher() { in ~SimpleWatcher()
143 bool SimpleWatcher::IsWatching() const { in IsWatching()
148 MojoResult SimpleWatcher::Watch(Handle handle, in Watch()
177 void SimpleWatcher::Cancel() { in Cancel()
[all …]
Dsimple_watcher.h36 class MOJO_CPP_SYSTEM_EXPORT SimpleWatcher {
89 SimpleWatcher(const base::Location& from_here,
93 ~SimpleWatcher();
236 base::WeakPtrFactory<SimpleWatcher> weak_factory_;
238 DISALLOW_COPY_AND_ASSIGN(SimpleWatcher);
Dhandle_signal_tracker.cc15 SimpleWatcher::ArmingPolicy::MANUAL, in HandleSignalTracker()
18 SimpleWatcher::ArmingPolicy::MANUAL, in HandleSignalTracker()
43 SimpleWatcher& watcher = arm_low_watcher ? low_watcher_ : high_watcher_; in Arm()
Dhandle_signal_tracker.h58 SimpleWatcher high_watcher_;
62 SimpleWatcher low_watcher_;
Dfile_data_pipe_producer.cc109 watcher_ = std::make_unique<SimpleWatcher>( in StartFromFileOnFileSequence()
110 FROM_HERE, SimpleWatcher::ArmingPolicy::AUTOMATIC, in StartFromFileOnFileSequence()
226 std::unique_ptr<SimpleWatcher> watcher_;
Ddata_pipe_drainer.h38 mojo::SimpleWatcher handle_watcher_;
DREADME.md210 The [`mojo::SimpleWatcher`](https://cs.chromium.org/chromium/src/mojo/public/cpp/system/simple_watc…
213 to watch a handle for signaling state changes. A `SimpleWatcher` is bound to a
217 `SimpleWatcher` has two possible modes of operation, selected at construction
218 time by the `mojo::SimpleWatcher::ArmingPolicy` enum:
222 Every time the notification callback is run, the `SimpleWatcher` must be
225 documentation in `SimpleWatcher`'s header.
227 * `AUTOMATIC` mode ensures that the `SimpleWatcher` always either is armed or
242 watcher_(mojo::SimpleWatcher::ArmingPolicy::AUTOMATIC) {
244 // after SimpleWatcher destruction.
264 mojo::SimpleWatcher watcher_;
Dstring_data_pipe_producer.h82 SimpleWatcher watcher_;
Dscope_to_message_pipe.cc26 pipe_watcher_(FROM_HERE, SimpleWatcher::ArmingPolicy::AUTOMATIC) {} in MessagePipeScoperBase()
Ddata_pipe_drainer.cc20 SimpleWatcher::ArmingPolicy::AUTOMATIC, in DataPipeDrainer()
Dscope_to_message_pipe.h31 SimpleWatcher pipe_watcher_;
Dstring_data_pipe_producer.cc62 SimpleWatcher::ArmingPolicy::AUTOMATIC, in StringDataPipeProducer()
/external/libchrome/mojo/public/java/system/
Dwatcher_impl.cc26 SimpleWatcher::ArmingPolicy::AUTOMATIC, in WatcherImpl()
68 SimpleWatcher watcher_;
/external/libchrome/mojo/public/cpp/bindings/lib/
Dconnector.cc395 handle_watcher_.reset(new SimpleWatcher( in WaitToReadMore()
396 FROM_HERE, SimpleWatcher::ArmingPolicy::MANUAL, task_runner_)); in WaitToReadMore()
/external/libchrome/mojo/public/cpp/bindings/
Dconnector.h235 std::unique_ptr<SimpleWatcher> handle_watcher_;
/external/libchrome/mojo/core/
Ddata_pipe_unittest.cc1988 SimpleWatcher producer_watcher(FROM_HERE, in DEFINE_TEST_CLIENT_TEST_WITH_PIPE()
1989 SimpleWatcher::ArmingPolicy::AUTOMATIC, in DEFINE_TEST_CLIENT_TEST_WITH_PIPE()
1991 SimpleWatcher consumer_watcher(FROM_HERE, in DEFINE_TEST_CLIENT_TEST_WITH_PIPE()
1992 SimpleWatcher::ArmingPolicy::AUTOMATIC, in DEFINE_TEST_CLIENT_TEST_WITH_PIPE()
Dmultiprocess_message_pipe_unittest.cc1274 SimpleWatcher watcher(FROM_HERE, SimpleWatcher::ArmingPolicy::AUTOMATIC, in DEFINE_TEST_CLIENT_TEST_WITH_PIPE()