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

Unified Diff: chrome/common/service_process_util.h

Issue 2444363003: Remove uses of ChannelHandle for service processes. (Closed)
Patch Set: Created 4 years, 2 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 | « chrome/common/DEPS ('k') | chrome/common/service_process_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/service_process_util.h
diff --git a/chrome/common/service_process_util.h b/chrome/common/service_process_util.h
index 10769cf28ad3b09415795afa93e4c4cb4e892f52..2c20ec0c7d51624b2f45d017d389dcb178c56596 100644
--- a/chrome/common/service_process_util.h
+++ b/chrome/common/service_process_util.h
@@ -12,7 +12,8 @@
#include "base/memory/shared_memory.h"
#include "base/process/process.h"
#include "build/build_config.h"
-#include "ipc/ipc_channel_handle.h"
+#include "mojo/edk/embedder/named_platform_handle.h"
+#include "mojo/edk/embedder/scoped_platform_handle.h"
class MultiProcessLock;
@@ -30,7 +31,7 @@ class SingleThreadTaskRunner;
}
// Return the IPC channel to connect to the service process.
-IPC::ChannelHandle GetServiceProcessChannel();
+mojo::edk::NamedPlatformHandle GetServiceProcessChannel();
// Return a name that is scoped to this instance of the service process. We
// use the user-data-dir as a scoping prefix.
@@ -103,7 +104,11 @@ class ServiceProcessState {
bool RemoveFromAutoRun();
// Return the channel handle used for communicating with the service.
- IPC::ChannelHandle GetServiceProcessChannel();
+#if defined(OS_MACOSX)
+ mojo::edk::ScopedPlatformHandle GetServiceProcessChannel();
+#else
+ mojo::edk::NamedPlatformHandle GetServiceProcessChannel();
+#endif
private:
#if !defined(OS_MACOSX)
« no previous file with comments | « chrome/common/DEPS ('k') | chrome/common/service_process_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698