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

Side by Side Diff: mojo/edk/system/core.h

Issue 2725133002: 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
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 #ifndef MOJO_EDK_SYSTEM_CORE_H_ 5 #ifndef MOJO_EDK_SYSTEM_CORE_H_
6 #define MOJO_EDK_SYSTEM_CORE_H_ 6 #define MOJO_EDK_SYSTEM_CORE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 MojoResult Wait(MojoHandle handle, 138 MojoResult Wait(MojoHandle handle,
139 MojoHandleSignals signals, 139 MojoHandleSignals signals,
140 MojoDeadline deadline, 140 MojoDeadline deadline,
141 MojoHandleSignalsState* signals_state); 141 MojoHandleSignalsState* signals_state);
142 MojoResult WaitMany(const MojoHandle* handles, 142 MojoResult WaitMany(const MojoHandle* handles,
143 const MojoHandleSignals* signals, 143 const MojoHandleSignals* signals,
144 uint32_t num_handles, 144 uint32_t num_handles,
145 MojoDeadline deadline, 145 MojoDeadline deadline,
146 uint32_t* result_index, 146 uint32_t* result_index,
147 MojoHandleSignalsState* signals_states); 147 MojoHandleSignalsState* signals_states);
148 MojoResult Watch(MojoHandle handle, 148 MojoResult RegisterWatcher(MojoHandle handle,
149 MojoHandleSignals signals, 149 MojoHandleSignals signals,
150 MojoWatchCallback callback, 150 MojoWatchCallback callback,
151 uintptr_t context); 151 uintptr_t context);
152 MojoResult CancelWatch(MojoHandle handle, uintptr_t context); 152 MojoResult ArmWatcher(MojoHandle handle, uintptr_t context);
153 MojoResult UnregisterWatcher(MojoHandle handle, uintptr_t context);
153 MojoResult AllocMessage(uint32_t num_bytes, 154 MojoResult AllocMessage(uint32_t num_bytes,
154 const MojoHandle* handles, 155 const MojoHandle* handles,
155 uint32_t num_handles, 156 uint32_t num_handles,
156 MojoAllocMessageFlags flags, 157 MojoAllocMessageFlags flags,
157 MojoMessageHandle* message); 158 MojoMessageHandle* message);
158 MojoResult FreeMessage(MojoMessageHandle message); 159 MojoResult FreeMessage(MojoMessageHandle message);
159 MojoResult GetMessageBuffer(MojoMessageHandle message, void** buffer); 160 MojoResult GetMessageBuffer(MojoMessageHandle message, void** buffer);
160 MojoResult GetProperty(MojoPropertyType type, void* value); 161 MojoResult GetProperty(MojoPropertyType type, void* value);
161 162
162 // These methods correspond to the API functions defined in 163 // These methods correspond to the API functions defined in
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 // Properties that can be read using the MojoGetProperty() API. 310 // Properties that can be read using the MojoGetProperty() API.
310 bool property_sync_call_allowed_ = true; 311 bool property_sync_call_allowed_ = true;
311 312
312 DISALLOW_COPY_AND_ASSIGN(Core); 313 DISALLOW_COPY_AND_ASSIGN(Core);
313 }; 314 };
314 315
315 } // namespace edk 316 } // namespace edk
316 } // namespace mojo 317 } // namespace mojo
317 318
318 #endif // MOJO_EDK_SYSTEM_CORE_H_ 319 #endif // MOJO_EDK_SYSTEM_CORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698