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

Side by Side Diff: mojo/public/cpp/system/buffer.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 shared buffers, 5 // This file provides a C++ wrapping around the Mojo C API for shared buffers,
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/buffer.h" for complete documentation of the 9 // Please see "mojo/public/c/system/buffer.h" for complete documentation of the
10 // API. 10 // API.
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 } 117 }
118 118
119 inline SharedBuffer::SharedBuffer( 119 inline SharedBuffer::SharedBuffer(
120 uint64_t num_bytes, 120 uint64_t num_bytes,
121 const MojoCreateSharedBufferOptions& options) { 121 const MojoCreateSharedBufferOptions& options) {
122 MojoResult result = CreateSharedBuffer(&options, num_bytes, &handle); 122 MojoResult result = CreateSharedBuffer(&options, num_bytes, &handle);
123 MOJO_ALLOW_UNUSED_LOCAL(result); 123 MOJO_ALLOW_UNUSED_LOCAL(result);
124 assert(result == MOJO_RESULT_OK); 124 assert(result == MOJO_RESULT_OK);
125 } 125 }
126 126
127 inline SharedBuffer::~SharedBuffer() {
128 }
129
130 } // namespace mojo 127 } // namespace mojo
131 128
132 #endif // MOJO_PUBLIC_CPP_SYSTEM_BUFFER_H_ 129 #endif // MOJO_PUBLIC_CPP_SYSTEM_BUFFER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698