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

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

Issue 1543603002: Switch to standard integer types in mojo/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years 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.
11 11
12 #ifndef MOJO_PUBLIC_CPP_SYSTEM_BUFFER_H_ 12 #ifndef MOJO_PUBLIC_CPP_SYSTEM_BUFFER_H_
13 #define MOJO_PUBLIC_CPP_SYSTEM_BUFFER_H_ 13 #define MOJO_PUBLIC_CPP_SYSTEM_BUFFER_H_
14 14
15 #include <assert.h> 15 #include <assert.h>
16 #include <stdint.h>
16 17
17 #include "mojo/public/c/system/buffer.h" 18 #include "mojo/public/c/system/buffer.h"
18 #include "mojo/public/cpp/system/handle.h" 19 #include "mojo/public/cpp/system/handle.h"
19 #include "mojo/public/cpp/system/macros.h" 20 #include "mojo/public/cpp/system/macros.h"
20 21
21 namespace mojo { 22 namespace mojo {
22 23
23 // A strongly-typed representation of a |MojoHandle| referring to a shared 24 // A strongly-typed representation of a |MojoHandle| referring to a shared
24 // buffer. 25 // buffer.
25 class SharedBufferHandle : public Handle { 26 class SharedBufferHandle : public Handle {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 MOJO_ALLOW_UNUSED_LOCAL(result); 124 MOJO_ALLOW_UNUSED_LOCAL(result);
124 assert(result == MOJO_RESULT_OK); 125 assert(result == MOJO_RESULT_OK);
125 } 126 }
126 127
127 inline SharedBuffer::~SharedBuffer() { 128 inline SharedBuffer::~SharedBuffer() {
128 } 129 }
129 130
130 } // namespace mojo 131 } // namespace mojo
131 132
132 #endif // MOJO_PUBLIC_CPP_SYSTEM_BUFFER_H_ 133 #endif // MOJO_PUBLIC_CPP_SYSTEM_BUFFER_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/environment/tests/logging_unittest.cc ('k') | mojo/public/cpp/system/data_pipe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698