| 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" |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 const scoped_refptr<WatcherDispatcher>& watcher, | 126 const scoped_refptr<WatcherDispatcher>& watcher, |
| 127 uintptr_t context) { | 127 uintptr_t context) { |
| 128 return MOJO_RESULT_INVALID_ARGUMENT; | 128 return MOJO_RESULT_INVALID_ARGUMENT; |
| 129 } | 129 } |
| 130 | 130 |
| 131 MojoResult Dispatcher::RemoveWatcherRef(WatcherDispatcher* watcher, | 131 MojoResult Dispatcher::RemoveWatcherRef(WatcherDispatcher* watcher, |
| 132 uintptr_t context) { | 132 uintptr_t context) { |
| 133 return MOJO_RESULT_INVALID_ARGUMENT; | 133 return MOJO_RESULT_INVALID_ARGUMENT; |
| 134 } | 134 } |
| 135 | 135 |
| 136 MojoResult Dispatcher::AddAwakable(Awakable* awakable, | |
| 137 MojoHandleSignals signals, | |
| 138 uintptr_t context, | |
| 139 HandleSignalsState* signals_state) { | |
| 140 return MOJO_RESULT_INVALID_ARGUMENT; | |
| 141 } | |
| 142 | |
| 143 void Dispatcher::RemoveAwakable(Awakable* awakable, | |
| 144 HandleSignalsState* handle_signals_state) { | |
| 145 NOTREACHED(); | |
| 146 } | |
| 147 | |
| 148 void Dispatcher::StartSerialize(uint32_t* num_bytes, | 136 void Dispatcher::StartSerialize(uint32_t* num_bytes, |
| 149 uint32_t* num_ports, | 137 uint32_t* num_ports, |
| 150 uint32_t* num_platform_handles) { | 138 uint32_t* num_platform_handles) { |
| 151 *num_bytes = 0; | 139 *num_bytes = 0; |
| 152 *num_ports = 0; | 140 *num_ports = 0; |
| 153 *num_platform_handles = 0; | 141 *num_platform_handles = 0; |
| 154 } | 142 } |
| 155 | 143 |
| 156 bool Dispatcher::EndSerialize(void* destination, | 144 bool Dispatcher::EndSerialize(void* destination, |
| 157 ports::PortName* ports, | 145 ports::PortName* ports, |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 return nullptr; | 189 return nullptr; |
| 202 } | 190 } |
| 203 } | 191 } |
| 204 | 192 |
| 205 Dispatcher::Dispatcher() {} | 193 Dispatcher::Dispatcher() {} |
| 206 | 194 |
| 207 Dispatcher::~Dispatcher() {} | 195 Dispatcher::~Dispatcher() {} |
| 208 | 196 |
| 209 } // namespace edk | 197 } // namespace edk |
| 210 } // namespace mojo | 198 } // namespace mojo |
| OLD | NEW |