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

Side by Side Diff: mojo/edk/embedder/embedder.h

Issue 2084993002: Mojo: add support for disallowing sync calls for a process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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 | « content/browser/browser_main_loop.cc ('k') | mojo/edk/embedder/embedder.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 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
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_
OLDNEW
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | mojo/edk/embedder/embedder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698