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

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

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month 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/public/cpp/system/BUILD.gn ('k') | mojo/public/cpp/system/core.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 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 "third_party/mojo/src/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 THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_SYSTEM_BUFFER_H_ 12 #ifndef MOJO_PUBLIC_CPP_SYSTEM_BUFFER_H_
13 #define THIRD_PARTY_MOJO_SRC_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 16
17 #include "third_party/mojo/src/mojo/public/c/system/buffer.h" 17 #include "mojo/public/c/system/buffer.h"
18 #include "third_party/mojo/src/mojo/public/cpp/system/handle.h" 18 #include "mojo/public/cpp/system/handle.h"
19 #include "third_party/mojo/src/mojo/public/cpp/system/macros.h" 19 #include "mojo/public/cpp/system/macros.h"
20 20
21 namespace mojo { 21 namespace mojo {
22 22
23 // A strongly-typed representation of a |MojoHandle| referring to a shared 23 // A strongly-typed representation of a |MojoHandle| referring to a shared
24 // buffer. 24 // buffer.
25 class SharedBufferHandle : public Handle { 25 class SharedBufferHandle : public Handle {
26 public: 26 public:
27 SharedBufferHandle() {} 27 SharedBufferHandle() {}
28 explicit SharedBufferHandle(MojoHandle value) : Handle(value) {} 28 explicit SharedBufferHandle(MojoHandle value) : Handle(value) {}
29 29
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
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() { 127 inline SharedBuffer::~SharedBuffer() {
128 } 128 }
129 129
130 } // namespace mojo 130 } // namespace mojo
131 131
132 #endif // THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_SYSTEM_BUFFER_H_ 132 #endif // MOJO_PUBLIC_CPP_SYSTEM_BUFFER_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/system/BUILD.gn ('k') | mojo/public/cpp/system/core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698