| 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, | 25 MojoResult Dispatcher::RegisterWatcher(MojoHandleSignals signals, |
| 26 const Watcher::WatchCallback& callback, | 26 const Watcher::WatchCallback& callback, |
| 27 uintptr_t context) { | 27 uintptr_t context) { |
| 28 return MOJO_RESULT_INVALID_ARGUMENT; | 28 return MOJO_RESULT_INVALID_ARGUMENT; |
| 29 } | 29 } |
| 30 | 30 |
| 31 MojoResult Dispatcher::CancelWatch(uintptr_t context) { | 31 MojoResult Dispatcher::ArmWatcher(uintptr_t context) { |
| 32 return MOJO_RESULT_INVALID_ARGUMENT; | 32 return MOJO_RESULT_INVALID_ARGUMENT; |
| 33 } | 33 } |
| 34 | 34 |
| 35 MojoResult Dispatcher::UnregisterWatcher(uintptr_t context) { |
| 36 return MOJO_RESULT_INVALID_ARGUMENT; |
| 37 } |
| 38 |
| 35 MojoResult Dispatcher::WriteMessage(std::unique_ptr<MessageForTransit> message, | 39 MojoResult Dispatcher::WriteMessage(std::unique_ptr<MessageForTransit> message, |
| 36 MojoWriteMessageFlags flags) { | 40 MojoWriteMessageFlags flags) { |
| 37 return MOJO_RESULT_INVALID_ARGUMENT; | 41 return MOJO_RESULT_INVALID_ARGUMENT; |
| 38 } | 42 } |
| 39 | 43 |
| 40 MojoResult Dispatcher::ReadMessage(std::unique_ptr<MessageForTransit>* message, | 44 MojoResult Dispatcher::ReadMessage(std::unique_ptr<MessageForTransit>* message, |
| 41 uint32_t* num_bytes, | 45 uint32_t* num_bytes, |
| 42 MojoHandle* handles, | 46 MojoHandle* handles, |
| 43 uint32_t* num_handles, | 47 uint32_t* num_handles, |
| 44 MojoReadMessageFlags flags, | 48 MojoReadMessageFlags flags, |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 return nullptr; | 187 return nullptr; |
| 184 } | 188 } |
| 185 } | 189 } |
| 186 | 190 |
| 187 Dispatcher::Dispatcher() {} | 191 Dispatcher::Dispatcher() {} |
| 188 | 192 |
| 189 Dispatcher::~Dispatcher() {} | 193 Dispatcher::~Dispatcher() {} |
| 190 | 194 |
| 191 } // namespace edk | 195 } // namespace edk |
| 192 } // namespace mojo | 196 } // namespace mojo |
| OLD | NEW |