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

Unified Diff: mojo/edk/embedder/embedder.cc

Issue 2680973006: Mojo EDK: Add safe process connection API (Closed)
Patch Set: . Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/edk/embedder/embedder.h ('k') | mojo/edk/embedder/embedder_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/embedder/embedder.cc
diff --git a/mojo/edk/embedder/embedder.cc b/mojo/edk/embedder/embedder.cc
index 17cfe7d26fb96b374ff9710e623ddba26a9462d5..d581e65381e676f40a647e338bd1da7c4695b5b9 100644
--- a/mojo/edk/embedder/embedder.cc
+++ b/mojo/edk/embedder/embedder.cc
@@ -42,27 +42,6 @@ Core* GetCore() { return g_core; }
void SetMaxMessageSize(size_t bytes) {
}
-void ChildProcessLaunched(base::ProcessHandle child_process,
- ScopedPlatformHandle server_pipe,
- const std::string& child_token) {
- ChildProcessLaunched(child_process, std::move(server_pipe),
- child_token, ProcessErrorCallback());
-}
-
-void ChildProcessLaunched(base::ProcessHandle child_process,
- ScopedPlatformHandle server_pipe,
- const std::string& child_token,
- const ProcessErrorCallback& process_error_callback) {
- CHECK(internal::g_core);
- internal::g_core->AddChild(child_process, std::move(server_pipe),
- child_token, process_error_callback);
-}
-
-void ChildProcessLaunchFailed(const std::string& child_token) {
- CHECK(internal::g_core);
- internal::g_core->ChildLaunchFailed(child_token);
-}
-
void SetParentPipeHandle(ScopedPlatformHandle pipe) {
CHECK(internal::g_core);
internal::g_core->InitChild(std::move(pipe));
@@ -155,11 +134,6 @@ void SetMachPortProvider(base::PortProvider* port_provider) {
}
#endif
-ScopedMessagePipeHandle CreateParentMessagePipe(
- const std::string& token, const std::string& child_token) {
- return internal::g_core->CreateParentMessagePipe(token, child_token);
-}
-
ScopedMessagePipeHandle CreateChildMessagePipe(const std::string& token) {
return internal::g_core->CreateChildMessagePipe(token);
}
« no previous file with comments | « mojo/edk/embedder/embedder.h ('k') | mojo/edk/embedder/embedder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698