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

Unified Diff: third_party/WebKit/public/platform/Platform.h

Issue 2460723003: Enable connection to Mojo services from Blink (Closed)
Patch Set: Rebase Created 4 years 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 | « third_party/WebKit/public/platform/DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/Platform.h
diff --git a/third_party/WebKit/public/platform/Platform.h b/third_party/WebKit/public/platform/Platform.h
index 0aae60e68528300de39cfb17beac6974bd72cc28..fce5664099199ddecb2f2cff594aa94207c7000a 100644
--- a/third_party/WebKit/public/platform/Platform.h
+++ b/third_party/WebKit/public/platform/Platform.h
@@ -56,6 +56,7 @@
#include "base/metrics/user_metrics_action.h"
#include "cc/resources/shared_bitmap.h"
#include "cc/surfaces/frame_sink_id.h"
+#include "mojo/public/cpp/system/message_pipe.h"
namespace gpu {
class GpuMemoryBufferManager;
@@ -590,6 +591,15 @@ class BLINK_PLATFORM_EXPORT Platform {
virtual InterfaceProvider* interfaceProvider();
+ // Sets up a connection to the ServiceManager by binding |remoteHandle| to a
+ // remote implementation of
+ // //service_manager/public/interfaces/connector.mojom. Using this connection
+ // the caller can then request connections to other services.
+ // NOTE: This handle is not strongly typed because neither the Blink nor
+ // Chromium types generated from connector.mojom should leak across the
+ // Blink-Chromium boundary.
+ virtual void bindServiceConnector(mojo::ScopedMessagePipeHandle remoteHandle);
+
// Platform events -----------------------------------------------------
// Device Orientation, Device Motion, Device Light, Battery, Gamepad.
« no previous file with comments | « third_party/WebKit/public/platform/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698