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 14 matching lines...) Expand all Loading... |
25 MojoResult Dispatcher::Watch(MojoHandleSignals signals, | 25 MojoResult Dispatcher::Watch(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::CancelWatch(uintptr_t context) { |
32 return MOJO_RESULT_INVALID_ARGUMENT; | 32 return MOJO_RESULT_INVALID_ARGUMENT; |
33 } | 33 } |
34 | 34 |
35 MojoResult Dispatcher::WriteMessage(const void* bytes, | 35 MojoResult Dispatcher::WriteMessage(std::unique_ptr<MessageForTransit> message, |
36 uint32_t num_bytes, | |
37 const DispatcherInTransit* dispatchers, | |
38 uint32_t num_dispatchers, | |
39 MojoWriteMessageFlags flags) { | 36 MojoWriteMessageFlags flags) { |
40 return MOJO_RESULT_INVALID_ARGUMENT; | 37 return MOJO_RESULT_INVALID_ARGUMENT; |
41 } | 38 } |
42 | 39 |
43 MojoResult Dispatcher::ReadMessage(void* bytes, | 40 MojoResult Dispatcher::ReadMessage(std::unique_ptr<MessageForTransit>* message, |
44 uint32_t* num_bytes, | 41 uint32_t* num_bytes, |
45 MojoHandle* handles, | 42 MojoHandle* handles, |
46 uint32_t* num_handles, | 43 uint32_t* num_handles, |
47 MojoReadMessageFlags flags) { | 44 MojoReadMessageFlags flags, |
| 45 bool read_any_size) { |
48 return MOJO_RESULT_INVALID_ARGUMENT; | 46 return MOJO_RESULT_INVALID_ARGUMENT; |
49 } | 47 } |
50 | 48 |
51 MojoResult Dispatcher::DuplicateBufferHandle( | 49 MojoResult Dispatcher::DuplicateBufferHandle( |
52 const MojoDuplicateBufferHandleOptions* options, | 50 const MojoDuplicateBufferHandleOptions* options, |
53 scoped_refptr<Dispatcher>* new_dispatcher) { | 51 scoped_refptr<Dispatcher>* new_dispatcher) { |
54 return MOJO_RESULT_INVALID_ARGUMENT; | 52 return MOJO_RESULT_INVALID_ARGUMENT; |
55 } | 53 } |
56 | 54 |
57 MojoResult Dispatcher::MapBuffer( | 55 MojoResult Dispatcher::MapBuffer( |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 return nullptr; | 183 return nullptr; |
186 } | 184 } |
187 } | 185 } |
188 | 186 |
189 Dispatcher::Dispatcher() {} | 187 Dispatcher::Dispatcher() {} |
190 | 188 |
191 Dispatcher::~Dispatcher() {} | 189 Dispatcher::~Dispatcher() {} |
192 | 190 |
193 } // namespace edk | 191 } // namespace edk |
194 } // namespace mojo | 192 } // namespace mojo |
OLD | NEW |