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

Side by Side Diff: mojo/edk/system/core.h

Issue 1781513002: Implement MojoGetBufferInformation(), part 2. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | mojo/edk/system/core.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef MOJO_EDK_SYSTEM_CORE_H_ 5 #ifndef MOJO_EDK_SYSTEM_CORE_H_
6 #define MOJO_EDK_SYSTEM_CORE_H_ 6 #define MOJO_EDK_SYSTEM_CORE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <functional> 10 #include <functional>
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // These methods correspond to the API functions defined in 145 // These methods correspond to the API functions defined in
146 // "mojo/public/c/system/buffer.h": 146 // "mojo/public/c/system/buffer.h":
147 MojoResult CreateSharedBuffer( 147 MojoResult CreateSharedBuffer(
148 UserPointer<const MojoCreateSharedBufferOptions> options, 148 UserPointer<const MojoCreateSharedBufferOptions> options,
149 uint64_t num_bytes, 149 uint64_t num_bytes,
150 UserPointer<MojoHandle> shared_buffer_handle); 150 UserPointer<MojoHandle> shared_buffer_handle);
151 MojoResult DuplicateBufferHandle( 151 MojoResult DuplicateBufferHandle(
152 MojoHandle buffer_handle, 152 MojoHandle buffer_handle,
153 UserPointer<const MojoDuplicateBufferHandleOptions> options, 153 UserPointer<const MojoDuplicateBufferHandleOptions> options,
154 UserPointer<MojoHandle> new_buffer_handle); 154 UserPointer<MojoHandle> new_buffer_handle);
155 MojoResult GetBufferInformation(MojoHandle buffer_handle,
156 UserPointer<MojoBufferInformation> info,
157 uint32_t info_num_bytes);
155 MojoResult MapBuffer(MojoHandle buffer_handle, 158 MojoResult MapBuffer(MojoHandle buffer_handle,
156 uint64_t offset, 159 uint64_t offset,
157 uint64_t num_bytes, 160 uint64_t num_bytes,
158 UserPointer<void*> buffer, 161 UserPointer<void*> buffer,
159 MojoMapBufferFlags flags); 162 MojoMapBufferFlags flags);
160 MojoResult UnmapBuffer(UserPointer<void> buffer); 163 MojoResult UnmapBuffer(UserPointer<void> buffer);
161 164
162 private: 165 private:
163 friend bool internal::ShutdownCheckNoLeaks(Core*); 166 friend bool internal::ShutdownCheckNoLeaks(Core*);
164 167
(...skipping 18 matching lines...) Expand all
183 util::Mutex mapping_table_mutex_; 186 util::Mutex mapping_table_mutex_;
184 MappingTable mapping_table_ MOJO_GUARDED_BY(mapping_table_mutex_); 187 MappingTable mapping_table_ MOJO_GUARDED_BY(mapping_table_mutex_);
185 188
186 MOJO_DISALLOW_COPY_AND_ASSIGN(Core); 189 MOJO_DISALLOW_COPY_AND_ASSIGN(Core);
187 }; 190 };
188 191
189 } // namespace system 192 } // namespace system
190 } // namespace mojo 193 } // namespace mojo
191 194
192 #endif // MOJO_EDK_SYSTEM_CORE_H_ 195 #endif // MOJO_EDK_SYSTEM_CORE_H_
OLDNEW
« no previous file with comments | « no previous file | mojo/edk/system/core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698