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

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

Issue 1793793002: Remove ShellConnection::WaitForInitialize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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 | « mash/example/window_type_launcher/main.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 <string> 10 #include <string>
(...skipping 30 matching lines...) Expand all
41 base::ProcessHandle child_process); 41 base::ProcessHandle child_process);
42 // Like above, except used when the embedder establishes the pipe between the 42 // Like above, except used when the embedder establishes the pipe between the
43 // parent and child processes itself. 43 // parent and child processes itself.
44 MOJO_SYSTEM_IMPL_EXPORT void ChildProcessLaunched( 44 MOJO_SYSTEM_IMPL_EXPORT void ChildProcessLaunched(
45 base::ProcessHandle child_process, ScopedPlatformHandle server_pipe); 45 base::ProcessHandle child_process, ScopedPlatformHandle server_pipe);
46 46
47 // Should be called as early as possible in the child process with the handle 47 // Should be called as early as possible in the child process with the handle
48 // that the parent received from ChildProcessLaunched. 48 // that the parent received from ChildProcessLaunched.
49 MOJO_SYSTEM_IMPL_EXPORT void SetParentPipeHandle(ScopedPlatformHandle pipe); 49 MOJO_SYSTEM_IMPL_EXPORT void SetParentPipeHandle(ScopedPlatformHandle pipe);
50 50
51 // Same as above but extracts the pipe handle from the command line. See
52 // PlatformChannelPair for details.
53 MOJO_SYSTEM_IMPL_EXPORT void SetParentPipeHandleFromCommandLine();
54
51 // Must be called first, or just after setting configuration parameters, to 55 // Must be called first, or just after setting configuration parameters, to
52 // initialize the (global, singleton) system. 56 // initialize the (global, singleton) system.
53 MOJO_SYSTEM_IMPL_EXPORT void Init(); 57 MOJO_SYSTEM_IMPL_EXPORT void Init();
54 58
55 // Basic functions ------------------------------------------------------------- 59 // Basic functions -------------------------------------------------------------
56 60
57 // The functions in this section are available once |Init()| has been called. 61 // The functions in this section are available once |Init()| has been called.
58 62
59 // Start waiting on the handle asynchronously. On success, |callback| will be 63 // Start waiting on the handle asynchronously. On success, |callback| will be
60 // called exactly once, when |handle| satisfies a signal in |signals| or it 64 // called exactly once, when |handle| satisfies a signal in |signals| or it
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 161
158 // Generates a random ASCII token string for use with CreateParentMessagePipe() 162 // Generates a random ASCII token string for use with CreateParentMessagePipe()
159 // and CreateChildMessagePipe() above. The generated token is suitably random so 163 // and CreateChildMessagePipe() above. The generated token is suitably random so
160 // as to not have to worry about collisions with other generated tokens. 164 // as to not have to worry about collisions with other generated tokens.
161 MOJO_SYSTEM_IMPL_EXPORT std::string GenerateRandomToken(); 165 MOJO_SYSTEM_IMPL_EXPORT std::string GenerateRandomToken();
162 166
163 } // namespace edk 167 } // namespace edk
164 } // namespace mojo 168 } // namespace mojo
165 169
166 #endif // MOJO_EDK_EMBEDDER_EMBEDDER_H_ 170 #endif // MOJO_EDK_EMBEDDER_EMBEDDER_H_
OLDNEW
« no previous file with comments | « mash/example/window_type_launcher/main.cc ('k') | mojo/edk/embedder/embedder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698