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

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

Issue 2596363002: [mojo] Delete RemoteMessagePipeBootstrap (Closed)
Patch Set: rebased Created 3 years, 11 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 | « no previous file | 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // arbitrary thread. 163 // arbitrary thread.
164 MOJO_SYSTEM_IMPL_EXPORT void ShutdownIPCSupport(const base::Closure& callback); 164 MOJO_SYSTEM_IMPL_EXPORT void ShutdownIPCSupport(const base::Closure& callback);
165 165
166 #if defined(OS_MACOSX) && !defined(OS_IOS) 166 #if defined(OS_MACOSX) && !defined(OS_IOS)
167 // Set the |base::PortProvider| for this process. Can be called on any thread, 167 // Set the |base::PortProvider| for this process. Can be called on any thread,
168 // but must be set in the root process before any Mach ports can be transferred. 168 // but must be set in the root process before any Mach ports can be transferred.
169 MOJO_SYSTEM_IMPL_EXPORT void SetMachPortProvider( 169 MOJO_SYSTEM_IMPL_EXPORT void SetMachPortProvider(
170 base::PortProvider* port_provider); 170 base::PortProvider* port_provider);
171 #endif 171 #endif
172 172
173 // Creates a message pipe over an arbitrary platform channel. The other end of
174 // the channel must also be passed to this function. Either endpoint can be in
175 // any process.
176 //
177 // Note that the channel is only used to negotiate pipe connection, not as the
178 // transport for messages on the pipe.
179 MOJO_SYSTEM_IMPL_EXPORT ScopedMessagePipeHandle
180 CreateMessagePipe(ScopedPlatformHandle platform_handle);
181
182 // Creates a message pipe from a token. A child embedder must also have this 173 // Creates a message pipe from a token. A child embedder must also have this
183 // token and call CreateChildMessagePipe() with it in order for the pipe to get 174 // token and call CreateChildMessagePipe() with it in order for the pipe to get
184 // connected. |child_token| identifies the child process and should be the same 175 // connected. |child_token| identifies the child process and should be the same
185 // as the token passed into ChildProcessLaunched(). If they are different, the 176 // as the token passed into ChildProcessLaunched(). If they are different, the
186 // returned message pipe will not be signaled of peer closure if the child 177 // returned message pipe will not be signaled of peer closure if the child
187 // process dies before establishing connection to the pipe. 178 // process dies before establishing connection to the pipe.
188 MOJO_SYSTEM_IMPL_EXPORT ScopedMessagePipeHandle 179 MOJO_SYSTEM_IMPL_EXPORT ScopedMessagePipeHandle
189 CreateParentMessagePipe(const std::string& token, 180 CreateParentMessagePipe(const std::string& token,
190 const std::string& child_token); 181 const std::string& child_token);
191 182
(...skipping 14 matching lines...) Expand all
206 // 197 //
207 // Default property values: 198 // Default property values:
208 // |MOJO_PROPERTY_TYPE_SYNC_CALL_ALLOWED| - true 199 // |MOJO_PROPERTY_TYPE_SYNC_CALL_ALLOWED| - true
209 MOJO_SYSTEM_IMPL_EXPORT MojoResult SetProperty(MojoPropertyType type, 200 MOJO_SYSTEM_IMPL_EXPORT MojoResult SetProperty(MojoPropertyType type,
210 const void* value); 201 const void* value);
211 202
212 } // namespace edk 203 } // namespace edk
213 } // namespace mojo 204 } // namespace mojo
214 205
215 #endif // MOJO_EDK_EMBEDDER_EMBEDDER_H_ 206 #endif // MOJO_EDK_EMBEDDER_EMBEDDER_H_
OLDNEW
« no previous file with comments | « no previous file | mojo/edk/embedder/embedder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698