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

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

Issue 2043713004: Mojo: Add NotifyBadMessage API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no bindings 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 241
242 MojoResult MojoUnwrapPlatformSharedBufferHandleImpl( 242 MojoResult MojoUnwrapPlatformSharedBufferHandleImpl(
243 MojoHandle mojo_handle, 243 MojoHandle mojo_handle,
244 MojoPlatformHandle* platform_handle, 244 MojoPlatformHandle* platform_handle,
245 size_t* num_bytes, 245 size_t* num_bytes,
246 MojoPlatformSharedBufferHandleFlags* flags) { 246 MojoPlatformSharedBufferHandleFlags* flags) {
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,
252 const char* error,
253 size_t error_num_bytes) {
254 return g_core->NotifyBadMessage(message, error, error_num_bytes);
255 }
256
251 } // extern "C" 257 } // extern "C"
252 258
253 namespace mojo { 259 namespace mojo {
254 namespace edk { 260 namespace edk {
255 261
256 MojoSystemThunks MakeSystemThunks() { 262 MojoSystemThunks MakeSystemThunks() {
257 MojoSystemThunks system_thunks = {sizeof(MojoSystemThunks), 263 MojoSystemThunks system_thunks = {sizeof(MojoSystemThunks),
258 MojoGetTimeTicksNowImpl, 264 MojoGetTimeTicksNowImpl,
259 MojoCloseImpl, 265 MojoCloseImpl,
260 MojoWaitImpl, 266 MojoWaitImpl,
(...skipping 20 matching lines...) Expand all
281 MojoCancelWatchImpl, 287 MojoCancelWatchImpl,
282 MojoFuseMessagePipesImpl, 288 MojoFuseMessagePipesImpl,
283 MojoWriteMessageNewImpl, 289 MojoWriteMessageNewImpl,
284 MojoReadMessageNewImpl, 290 MojoReadMessageNewImpl,
285 MojoAllocMessageImpl, 291 MojoAllocMessageImpl,
286 MojoFreeMessageImpl, 292 MojoFreeMessageImpl,
287 MojoGetMessageBufferImpl, 293 MojoGetMessageBufferImpl,
288 MojoWrapPlatformHandleImpl, 294 MojoWrapPlatformHandleImpl,
289 MojoUnwrapPlatformHandleImpl, 295 MojoUnwrapPlatformHandleImpl,
290 MojoWrapPlatformSharedBufferHandleImpl, 296 MojoWrapPlatformSharedBufferHandleImpl,
291 MojoUnwrapPlatformSharedBufferHandleImpl}; 297 MojoUnwrapPlatformSharedBufferHandleImpl,
298 MojoNotifyBadMessageImpl};
292 return system_thunks; 299 return system_thunks;
293 } 300 }
294 301
295 } // namespace edk 302 } // namespace edk
296 } // namespace mojo 303 } // 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