| 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 | 21 |
| 22 MojoResult Dispatcher::Watch(MojoHandleSignals signals, |
| 23 const Watcher::WatchCallback& callback, |
| 24 uintptr_t context) { |
| 25 return MOJO_RESULT_INVALID_ARGUMENT; |
| 26 } |
| 27 |
| 28 MojoResult Dispatcher::CancelWatch(uintptr_t context) { |
| 29 return MOJO_RESULT_INVALID_ARGUMENT; |
| 30 } |
| 31 |
| 22 MojoResult Dispatcher::WriteMessage(const void* bytes, | 32 MojoResult Dispatcher::WriteMessage(const void* bytes, |
| 23 uint32_t num_bytes, | 33 uint32_t num_bytes, |
| 24 const DispatcherInTransit* dispatchers, | 34 const DispatcherInTransit* dispatchers, |
| 25 uint32_t num_dispatchers, | 35 uint32_t num_dispatchers, |
| 26 MojoWriteMessageFlags flags) { | 36 MojoWriteMessageFlags flags) { |
| 27 return MOJO_RESULT_INVALID_ARGUMENT; | 37 return MOJO_RESULT_INVALID_ARGUMENT; |
| 28 } | 38 } |
| 29 | 39 |
| 30 MojoResult Dispatcher::ReadMessage(void* bytes, | 40 MojoResult Dispatcher::ReadMessage(void* bytes, |
| 31 uint32_t* num_bytes, | 41 uint32_t* num_bytes, |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 return nullptr; | 182 return nullptr; |
| 173 } | 183 } |
| 174 } | 184 } |
| 175 | 185 |
| 176 Dispatcher::Dispatcher() {} | 186 Dispatcher::Dispatcher() {} |
| 177 | 187 |
| 178 Dispatcher::~Dispatcher() {} | 188 Dispatcher::~Dispatcher() {} |
| 179 | 189 |
| 180 } // namespace edk | 190 } // namespace edk |
| 181 } // namespace mojo | 191 } // namespace mojo |
| OLD | NEW |