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

Side by Side Diff: mojo/edk/embedder/entrypoints.cc

Issue 2084993002: Mojo: add support for disallowing sync calls for a process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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/embedder/embedder.cc ('k') | mojo/edk/system/core.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/embedder/entrypoints.h" 5 #include "mojo/edk/embedder/entrypoints.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "mojo/edk/embedder/embedder_internal.h" 9 #include "mojo/edk/embedder/embedder_internal.h"
10 #include "mojo/edk/system/core.h" 10 #include "mojo/edk/system/core.h"
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 return g_core->UnwrapPlatformSharedBufferHandle(mojo_handle, platform_handle, 247 return g_core->UnwrapPlatformSharedBufferHandle(mojo_handle, platform_handle,
248 num_bytes, flags); 248 num_bytes, flags);
249 } 249 }
250 250
251 MojoResult MojoNotifyBadMessageImpl(MojoMessageHandle message, 251 MojoResult MojoNotifyBadMessageImpl(MojoMessageHandle message,
252 const char* error, 252 const char* error,
253 size_t error_num_bytes) { 253 size_t error_num_bytes) {
254 return g_core->NotifyBadMessage(message, error, error_num_bytes); 254 return g_core->NotifyBadMessage(message, error, error_num_bytes);
255 } 255 }
256 256
257 MojoResult MojoGetPropertyImpl(MojoPropertyType type, void* value) {
258 return g_core->GetProperty(type, value);
259 }
260
257 } // extern "C" 261 } // extern "C"
258 262
259 namespace mojo { 263 namespace mojo {
260 namespace edk { 264 namespace edk {
261 265
262 MojoSystemThunks MakeSystemThunks() { 266 MojoSystemThunks MakeSystemThunks() {
263 MojoSystemThunks system_thunks = {sizeof(MojoSystemThunks), 267 MojoSystemThunks system_thunks = {sizeof(MojoSystemThunks),
264 MojoGetTimeTicksNowImpl, 268 MojoGetTimeTicksNowImpl,
265 MojoCloseImpl, 269 MojoCloseImpl,
266 MojoWaitImpl, 270 MojoWaitImpl,
(...skipping 21 matching lines...) Expand all
288 MojoFuseMessagePipesImpl, 292 MojoFuseMessagePipesImpl,
289 MojoWriteMessageNewImpl, 293 MojoWriteMessageNewImpl,
290 MojoReadMessageNewImpl, 294 MojoReadMessageNewImpl,
291 MojoAllocMessageImpl, 295 MojoAllocMessageImpl,
292 MojoFreeMessageImpl, 296 MojoFreeMessageImpl,
293 MojoGetMessageBufferImpl, 297 MojoGetMessageBufferImpl,
294 MojoWrapPlatformHandleImpl, 298 MojoWrapPlatformHandleImpl,
295 MojoUnwrapPlatformHandleImpl, 299 MojoUnwrapPlatformHandleImpl,
296 MojoWrapPlatformSharedBufferHandleImpl, 300 MojoWrapPlatformSharedBufferHandleImpl,
297 MojoUnwrapPlatformSharedBufferHandleImpl, 301 MojoUnwrapPlatformSharedBufferHandleImpl,
298 MojoNotifyBadMessageImpl}; 302 MojoNotifyBadMessageImpl,
303 MojoGetPropertyImpl};
299 return system_thunks; 304 return system_thunks;
300 } 305 }
301 306
302 } // namespace edk 307 } // namespace edk
303 } // namespace mojo 308 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/embedder/embedder.cc ('k') | mojo/edk/system/core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698