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

Side by Side Diff: mojo/public/system/core_private.cc

Issue 133453003: Mojo: Change "handle_[01]" -> "handle[01]". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment fix Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « mojo/public/system/core_private.h ('k') | mojo/system/core_impl.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/public/system/core_private.h" 5 #include "mojo/public/system/core_private.h"
6 6
7 #include <assert.h> 7 #include <assert.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 static mojo::Core* g_core = NULL; 10 static mojo::Core* g_core = NULL;
(...skipping 18 matching lines...) Expand all
29 } 29 }
30 30
31 MojoResult MojoWaitMany(const MojoHandle* handles, 31 MojoResult MojoWaitMany(const MojoHandle* handles,
32 const MojoWaitFlags* flags, 32 const MojoWaitFlags* flags,
33 uint32_t num_handles, 33 uint32_t num_handles,
34 MojoDeadline deadline) { 34 MojoDeadline deadline) {
35 assert(g_core); 35 assert(g_core);
36 return g_core->WaitMany(handles, flags, num_handles, deadline); 36 return g_core->WaitMany(handles, flags, num_handles, deadline);
37 } 37 }
38 38
39 MojoResult MojoCreateMessagePipe(MojoHandle* message_pipe_handle_0, 39 MojoResult MojoCreateMessagePipe(MojoHandle* message_pipe_handle0,
40 MojoHandle* message_pipe_handle_1) { 40 MojoHandle* message_pipe_handle1) {
41 assert(g_core); 41 assert(g_core);
42 return g_core->CreateMessagePipe(message_pipe_handle_0, 42 return g_core->CreateMessagePipe(message_pipe_handle0, message_pipe_handle1);
43 message_pipe_handle_1);
44 } 43 }
45 44
46 MojoResult MojoWriteMessage(MojoHandle message_pipe_handle, 45 MojoResult MojoWriteMessage(MojoHandle message_pipe_handle,
47 const void* bytes, 46 const void* bytes,
48 uint32_t num_bytes, 47 uint32_t num_bytes,
49 const MojoHandle* handles, 48 const MojoHandle* handles,
50 uint32_t num_handles, 49 uint32_t num_handles,
51 MojoWriteMessageFlags flags) { 50 MojoWriteMessageFlags flags) {
52 assert(g_core); 51 assert(g_core);
53 return g_core->WriteMessage(message_pipe_handle, bytes, num_bytes, handles, 52 return g_core->WriteMessage(message_pipe_handle, bytes, num_bytes, handles,
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 Core* Core::Get() { 137 Core* Core::Get() {
139 return g_core; 138 return g_core;
140 } 139 }
141 140
142 // static 141 // static
143 void Core::Reset() { 142 void Core::Reset() {
144 g_core = NULL; 143 g_core = NULL;
145 } 144 }
146 145
147 } // namespace mojo 146 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/public/system/core_private.h ('k') | mojo/system/core_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698