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

Side by Side Diff: mojo/public/c/system/message_pipe.h

Issue 1932083002: Mojo: Use new message APIs to reduce copying (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 7 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/mojo_public.gyp ('k') | mojo/public/cpp/bindings/BUILD.gn » ('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 // This file contains types/constants and functions specific to message pipes. 5 // This file contains types/constants and functions specific to message pipes.
6 // 6 //
7 // Note: This header should be compilable as C. 7 // Note: This header should be compilable as C.
8 8
9 #ifndef MOJO_PUBLIC_C_SYSTEM_MESSAGE_PIPE_H_ 9 #ifndef MOJO_PUBLIC_C_SYSTEM_MESSAGE_PIPE_H_
10 #define MOJO_PUBLIC_C_SYSTEM_MESSAGE_PIPE_H_ 10 #define MOJO_PUBLIC_C_SYSTEM_MESSAGE_PIPE_H_
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 // |MOJO_RESULT_INVALID_ARGUMENT| if |message| was not a valid message. 301 // |MOJO_RESULT_INVALID_ARGUMENT| if |message| was not a valid message.
302 MOJO_SYSTEM_EXPORT MojoResult MojoFreeMessage(MojoMessageHandle message); 302 MOJO_SYSTEM_EXPORT MojoResult MojoFreeMessage(MojoMessageHandle message);
303 303
304 // Retrieves the address of mutable message bytes for a message allocated by 304 // Retrieves the address of mutable message bytes for a message allocated by
305 // either |MojoAllocMessage()| or |MojoReadMessageNew()|. 305 // either |MojoAllocMessage()| or |MojoReadMessageNew()|.
306 // 306 //
307 // Returns: 307 // Returns:
308 // |MOJO_RESULT_OK| if |message| is a valid message object. |*buffer| will 308 // |MOJO_RESULT_OK| if |message| is a valid message object. |*buffer| will
309 // be updated to point to mutable message bytes. 309 // be updated to point to mutable message bytes.
310 // |MOJO_RESULT_INVALID_ARGUMENT| if |message| is not a valid message object. 310 // |MOJO_RESULT_INVALID_ARGUMENT| if |message| is not a valid message object.
311 //
312 // NOTE: A returned buffer address is always guaranteed to be 8-byte aligned.
311 MOJO_SYSTEM_EXPORT MojoResult MojoGetMessageBuffer(MojoMessageHandle message, 313 MOJO_SYSTEM_EXPORT MojoResult MojoGetMessageBuffer(MojoMessageHandle message,
312 void** buffer); // Out 314 void** buffer); // Out
313 315
314 #ifdef __cplusplus 316 #ifdef __cplusplus
315 } // extern "C" 317 } // extern "C"
316 #endif 318 #endif
317 319
318 #endif // MOJO_PUBLIC_C_SYSTEM_MESSAGE_PIPE_H_ 320 #endif // MOJO_PUBLIC_C_SYSTEM_MESSAGE_PIPE_H_
OLDNEW
« no previous file with comments | « mojo/mojo_public.gyp ('k') | mojo/public/cpp/bindings/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698