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

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
Index: chrome/service/service_process.h
diff --git a/chrome/service/service_process.h b/chrome/service/service_process.h
index 5b46d36ed367b352d5a67ef44ae93d314629843f..7477a48ead719fafccf66abebb3bb31bcc191e8c 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;
@@ -81,7 +84,9 @@ class ServiceProcess : public ServiceIPCServer::Client,
// ServiceIPCServer::Client implementation.
void OnShutdown() override;
void OnUpdateAvailable() override;
+ void OnStayAliveForTesting() override;
bool OnIPCClientDisconnect() override;
+ mojo::ScopedMessagePipeHandle CreateChannelMessagePipe() override;
// CloudPrintProxy::Provider implementation.
cloud_print::CloudPrintProxy* GetCloudPrintProxy() override;
@@ -137,6 +142,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);
};

Powered by Google App Engine
This is Rietveld 408576698