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

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

Issue 988693005: Chromium roll (https://codereview.chromium.org/976353002) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix Clipboard.java Created 5 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 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 provides a C++ wrapping around the Mojo C API for message pipes, 5 // This file provides a C++ wrapping around the Mojo C API for message pipes,
6 // replacing the prefix of "Mojo" with a "mojo" namespace, and using more 6 // replacing the prefix of "Mojo" with a "mojo" namespace, and using more
7 // strongly-typed representations of |MojoHandle|s. 7 // strongly-typed representations of |MojoHandle|s.
8 // 8 //
9 // Please see "mojo/public/c/system/message_pipe.h" for complete documentation 9 // Please see "mojo/public/c/system/message_pipe.h" for complete documentation
10 // of the API. 10 // of the API.
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 MOJO_ALLOW_UNUSED_LOCAL(result); 104 MOJO_ALLOW_UNUSED_LOCAL(result);
105 assert(result == MOJO_RESULT_OK); 105 assert(result == MOJO_RESULT_OK);
106 } 106 }
107 107
108 inline MessagePipe::MessagePipe(const MojoCreateMessagePipeOptions& options) { 108 inline MessagePipe::MessagePipe(const MojoCreateMessagePipeOptions& options) {
109 MojoResult result = CreateMessagePipe(&options, &handle0, &handle1); 109 MojoResult result = CreateMessagePipe(&options, &handle0, &handle1);
110 MOJO_ALLOW_UNUSED_LOCAL(result); 110 MOJO_ALLOW_UNUSED_LOCAL(result);
111 assert(result == MOJO_RESULT_OK); 111 assert(result == MOJO_RESULT_OK);
112 } 112 }
113 113
114 inline MessagePipe::~MessagePipe() {
115 }
116
117 } // namespace mojo 114 } // namespace mojo
118 115
119 #endif // MOJO_PUBLIC_CPP_SYSTEM_MESSAGE_PIPE_H_ 116 #endif // MOJO_PUBLIC_CPP_SYSTEM_MESSAGE_PIPE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698