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

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

Issue 425523002: Mojo: Convert MemoryTest.Valid to the new user pointer handling (see r285350). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | mojo/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_SYSTEM_CORE_H_ 5 #ifndef MOJO_SYSTEM_CORE_H_
6 #define MOJO_SYSTEM_CORE_H_ 6 #define MOJO_SYSTEM_CORE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 UserPointer<MojoHandle> shared_buffer_handle); 95 UserPointer<MojoHandle> shared_buffer_handle);
96 MojoResult DuplicateBufferHandle( 96 MojoResult DuplicateBufferHandle(
97 MojoHandle buffer_handle, 97 MojoHandle buffer_handle,
98 UserPointer<const MojoDuplicateBufferHandleOptions> options, 98 UserPointer<const MojoDuplicateBufferHandleOptions> options,
99 UserPointer<MojoHandle> new_buffer_handle); 99 UserPointer<MojoHandle> new_buffer_handle);
100 MojoResult MapBuffer(MojoHandle buffer_handle, 100 MojoResult MapBuffer(MojoHandle buffer_handle,
101 uint64_t offset, 101 uint64_t offset,
102 uint64_t num_bytes, 102 uint64_t num_bytes,
103 UserPointer<void*> buffer, 103 UserPointer<void*> buffer,
104 MojoMapBufferFlags flags); 104 MojoMapBufferFlags flags);
105 MojoResult UnmapBuffer(UserPointerValue<void> buffer); 105 MojoResult UnmapBuffer(UserPointer<void> buffer);
106 106
107 private: 107 private:
108 friend bool internal::ShutdownCheckNoLeaks(Core*); 108 friend bool internal::ShutdownCheckNoLeaks(Core*);
109 109
110 // Internal implementation of |Wait()| and |WaitMany()|; doesn't do basic 110 // Internal implementation of |Wait()| and |WaitMany()|; doesn't do basic
111 // validation of arguments. |*result_index| is only set if the result (whether 111 // validation of arguments. |*result_index| is only set if the result (whether
112 // success or failure) applies to a specific handle, so its value should be 112 // success or failure) applies to a specific handle, so its value should be
113 // preinitialized to |static_cast<uint32_t>(-1)|. 113 // preinitialized to |static_cast<uint32_t>(-1)|.
114 MojoResult WaitManyInternal(const MojoHandle* handles, 114 MojoResult WaitManyInternal(const MojoHandle* handles,
115 const MojoHandleSignals* signals, 115 const MojoHandleSignals* signals,
(...skipping 13 matching lines...) Expand all
129 129
130 // --------------------------------------------------------------------------- 130 // ---------------------------------------------------------------------------
131 131
132 DISALLOW_COPY_AND_ASSIGN(Core); 132 DISALLOW_COPY_AND_ASSIGN(Core);
133 }; 133 };
134 134
135 } // namespace system 135 } // namespace system
136 } // namespace mojo 136 } // namespace mojo
137 137
138 #endif // MOJO_SYSTEM_CORE_H_ 138 #endif // MOJO_SYSTEM_CORE_H_
OLDNEW
« no previous file with comments | « no previous file | mojo/system/core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698