OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "mojo/edk/system/dispatcher.h" | 5 #include "mojo/edk/system/dispatcher.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "mojo/edk/system/configuration.h" | 8 #include "mojo/edk/system/configuration.h" |
9 #include "mojo/edk/system/data_pipe_consumer_dispatcher.h" | 9 #include "mojo/edk/system/data_pipe_consumer_dispatcher.h" |
10 #include "mojo/edk/system/data_pipe_producer_dispatcher.h" | 10 #include "mojo/edk/system/data_pipe_producer_dispatcher.h" |
11 #include "mojo/edk/system/message_pipe_dispatcher.h" | 11 #include "mojo/edk/system/message_pipe_dispatcher.h" |
12 #include "mojo/edk/system/platform_handle_dispatcher.h" | 12 #include "mojo/edk/system/platform_handle_dispatcher.h" |
13 #include "mojo/edk/system/shared_buffer_dispatcher.h" | 13 #include "mojo/edk/system/shared_buffer_dispatcher.h" |
14 | 14 |
15 namespace mojo { | 15 namespace mojo { |
16 namespace edk { | 16 namespace edk { |
17 | 17 |
18 Dispatcher::DispatcherInTransit::DispatcherInTransit() {} | 18 Dispatcher::DispatcherInTransit::DispatcherInTransit() {} |
19 | 19 |
20 Dispatcher::DispatcherInTransit::DispatcherInTransit( | 20 Dispatcher::DispatcherInTransit::DispatcherInTransit( |
21 const DispatcherInTransit& other) = default; | 21 const DispatcherInTransit& other) = default; |
22 | 22 |
23 Dispatcher::DispatcherInTransit::~DispatcherInTransit() {} | 23 Dispatcher::DispatcherInTransit::~DispatcherInTransit() {} |
24 | 24 |
| 25 MojoResult Dispatcher::Watch(MojoHandleSignals signals, |
| 26 const Watcher::WatchCallback& callback, |
| 27 uintptr_t context) { |
| 28 return MOJO_RESULT_INVALID_ARGUMENT; |
| 29 } |
| 30 |
| 31 MojoResult Dispatcher::CancelWatch(uintptr_t context) { |
| 32 return MOJO_RESULT_INVALID_ARGUMENT; |
| 33 } |
| 34 |
25 MojoResult Dispatcher::WriteMessage(const void* bytes, | 35 MojoResult Dispatcher::WriteMessage(const void* bytes, |
26 uint32_t num_bytes, | 36 uint32_t num_bytes, |
27 const DispatcherInTransit* dispatchers, | 37 const DispatcherInTransit* dispatchers, |
28 uint32_t num_dispatchers, | 38 uint32_t num_dispatchers, |
29 MojoWriteMessageFlags flags) { | 39 MojoWriteMessageFlags flags) { |
30 return MOJO_RESULT_INVALID_ARGUMENT; | 40 return MOJO_RESULT_INVALID_ARGUMENT; |
31 } | 41 } |
32 | 42 |
33 MojoResult Dispatcher::ReadMessage(void* bytes, | 43 MojoResult Dispatcher::ReadMessage(void* bytes, |
34 uint32_t* num_bytes, | 44 uint32_t* num_bytes, |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 return nullptr; | 185 return nullptr; |
176 } | 186 } |
177 } | 187 } |
178 | 188 |
179 Dispatcher::Dispatcher() {} | 189 Dispatcher::Dispatcher() {} |
180 | 190 |
181 Dispatcher::~Dispatcher() {} | 191 Dispatcher::~Dispatcher() {} |
182 | 192 |
183 } // namespace edk | 193 } // namespace edk |
184 } // namespace mojo | 194 } // namespace mojo |
OLD | NEW |