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

Unified Diff: chrome/service/service_process.h

Issue 2139643003: Use ChannelMojo between browser and service processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/service/service_ipc_server_unittest.cc ('k') | chrome/service/service_process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/service_process.h
diff --git a/chrome/service/service_process.h b/chrome/service/service_process.h
index 5b46d36ed367b352d5a67ef44ae93d314629843f..d89db5d62740d3962e9bd9337375d7940a5beea7 100644
--- a/chrome/service/service_process.h
+++ b/chrome/service/service_process.h
@@ -13,6 +13,9 @@
#include "base/threading/thread.h"
#include "chrome/service/cloud_print/cloud_print_proxy.h"
#include "chrome/service/service_ipc_server.h"
+#include "mojo/edk/embedder/named_platform_handle.h"
+#include "mojo/edk/embedder/scoped_platform_handle.h"
+#include "mojo/public/cpp/system/message_pipe.h"
class ServiceProcessPrefs;
class ServiceURLRequestContextGetter;
@@ -82,6 +85,7 @@ class ServiceProcess : public ServiceIPCServer::Client,
void OnShutdown() override;
void OnUpdateAvailable() override;
bool OnIPCClientDisconnect() override;
+ mojo::ScopedMessagePipeHandle CreateChannelMessagePipe() override;
// CloudPrintProxy::Provider implementation.
cloud_print::CloudPrintProxy* GetCloudPrintProxy() override;
@@ -137,6 +141,12 @@ class ServiceProcess : public ServiceIPCServer::Client,
scoped_refptr<ServiceURLRequestContextGetter> request_context_getter_;
+#if defined(OS_POSIX)
+ mojo::edk::ScopedPlatformHandle server_handle_;
+#elif defined(OS_WIN)
+ mojo::edk::NamedPlatformHandle server_handle_;
+#endif
+
DISALLOW_COPY_AND_ASSIGN(ServiceProcess);
};
« no previous file with comments | « chrome/service/service_ipc_server_unittest.cc ('k') | chrome/service/service_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698