Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Side by Side Diff: mojo/edk/system/dispatcher.cc

Issue 2750373002: Revert of Mojo: Armed Watchers (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/edk/system/dispatcher.h ('k') | mojo/edk/system/message_pipe_dispatcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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::WatchDispatcher(scoped_refptr<Dispatcher> dispatcher, 25 MojoResult Dispatcher::Watch(MojoHandleSignals signals,
26 MojoHandleSignals signals, 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::Arm(uint32_t* num_ready_contexts,
36 uintptr_t* ready_contexts,
37 MojoResult* ready_results,
38 MojoHandleSignalsState* ready_signals_states) {
39 return MOJO_RESULT_INVALID_ARGUMENT;
40 }
41
42 MojoResult Dispatcher::WriteMessage(std::unique_ptr<MessageForTransit> message, 35 MojoResult Dispatcher::WriteMessage(std::unique_ptr<MessageForTransit> message,
43 MojoWriteMessageFlags flags) { 36 MojoWriteMessageFlags flags) {
44 return MOJO_RESULT_INVALID_ARGUMENT; 37 return MOJO_RESULT_INVALID_ARGUMENT;
45 } 38 }
46 39
47 MojoResult Dispatcher::ReadMessage(std::unique_ptr<MessageForTransit>* message, 40 MojoResult Dispatcher::ReadMessage(std::unique_ptr<MessageForTransit>* message,
48 uint32_t* num_bytes, 41 uint32_t* num_bytes,
49 MojoHandle* handles, 42 MojoHandle* handles,
50 uint32_t* num_handles, 43 uint32_t* num_handles,
51 MojoReadMessageFlags flags, 44 MojoReadMessageFlags flags,
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 DispatcherVector* dispatchers, 108 DispatcherVector* dispatchers,
116 MojoResult* results, 109 MojoResult* results,
117 uintptr_t* contexts) { 110 uintptr_t* contexts) {
118 return MOJO_RESULT_INVALID_ARGUMENT; 111 return MOJO_RESULT_INVALID_ARGUMENT;
119 } 112 }
120 113
121 HandleSignalsState Dispatcher::GetHandleSignalsState() const { 114 HandleSignalsState Dispatcher::GetHandleSignalsState() const {
122 return HandleSignalsState(); 115 return HandleSignalsState();
123 } 116 }
124 117
125 MojoResult Dispatcher::AddWatcherRef(
126 const scoped_refptr<WatcherDispatcher>& watcher,
127 uintptr_t context) {
128 return MOJO_RESULT_INVALID_ARGUMENT;
129 }
130
131 MojoResult Dispatcher::RemoveWatcherRef(WatcherDispatcher* watcher,
132 uintptr_t context) {
133 return MOJO_RESULT_INVALID_ARGUMENT;
134 }
135
136 MojoResult Dispatcher::AddAwakable(Awakable* awakable, 118 MojoResult Dispatcher::AddAwakable(Awakable* awakable,
137 MojoHandleSignals signals, 119 MojoHandleSignals signals,
138 uintptr_t context, 120 uintptr_t context,
139 HandleSignalsState* signals_state) { 121 HandleSignalsState* signals_state) {
140 return MOJO_RESULT_INVALID_ARGUMENT; 122 return MOJO_RESULT_INVALID_ARGUMENT;
141 } 123 }
142 124
143 void Dispatcher::RemoveAwakable(Awakable* awakable, 125 void Dispatcher::RemoveAwakable(Awakable* awakable,
144 HandleSignalsState* handle_signals_state) { 126 HandleSignalsState* handle_signals_state) {
145 NOTREACHED(); 127 NOTREACHED();
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 return nullptr; 183 return nullptr;
202 } 184 }
203 } 185 }
204 186
205 Dispatcher::Dispatcher() {} 187 Dispatcher::Dispatcher() {}
206 188
207 Dispatcher::~Dispatcher() {} 189 Dispatcher::~Dispatcher() {}
208 190
209 } // namespace edk 191 } // namespace edk
210 } // namespace mojo 192 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/system/dispatcher.h ('k') | mojo/edk/system/message_pipe_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698