OLD | NEW |
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 #ifndef MOJO_EDK_EMBEDDER_EMBEDDER_H_ | 5 #ifndef MOJO_EDK_EMBEDDER_EMBEDDER_H_ |
6 #define MOJO_EDK_EMBEDDER_EMBEDDER_H_ | 6 #define MOJO_EDK_EMBEDDER_EMBEDDER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 // have this token and call CreateParentMessagePipe() with it in order for the | 182 // have this token and call CreateParentMessagePipe() with it in order for the |
183 // pipe to get connected. | 183 // pipe to get connected. |
184 MOJO_SYSTEM_IMPL_EXPORT ScopedMessagePipeHandle | 184 MOJO_SYSTEM_IMPL_EXPORT ScopedMessagePipeHandle |
185 CreateChildMessagePipe(const std::string& token); | 185 CreateChildMessagePipe(const std::string& token); |
186 | 186 |
187 // Generates a random ASCII token string for use with CreateParentMessagePipe() | 187 // Generates a random ASCII token string for use with CreateParentMessagePipe() |
188 // and CreateChildMessagePipe() above. The generated token is suitably random so | 188 // and CreateChildMessagePipe() above. The generated token is suitably random so |
189 // as to not have to worry about collisions with other generated tokens. | 189 // as to not have to worry about collisions with other generated tokens. |
190 MOJO_SYSTEM_IMPL_EXPORT std::string GenerateRandomToken(); | 190 MOJO_SYSTEM_IMPL_EXPORT std::string GenerateRandomToken(); |
191 | 191 |
| 192 // Sets system properties that can be read by the MojoGetProperty() API. See the |
| 193 // documentation for MojoPropertyType for supported property types and their |
| 194 // corresponding value type. |
| 195 // |
| 196 // Default property values: |
| 197 // |MOJO_PROPERTY_TYPE_SYNC_CALL_ALLOWED| - true |
| 198 MOJO_SYSTEM_IMPL_EXPORT MojoResult SetProperty(MojoPropertyType type, |
| 199 const void* value); |
| 200 |
192 } // namespace edk | 201 } // namespace edk |
193 } // namespace mojo | 202 } // namespace mojo |
194 | 203 |
195 #endif // MOJO_EDK_EMBEDDER_EMBEDDER_H_ | 204 #endif // MOJO_EDK_EMBEDDER_EMBEDDER_H_ |
OLD | NEW |