OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |