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

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

Issue 1830883002: Add blink::ServiceRegistry and expose it from LocalFrame and Platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « third_party/WebKit/public/blink_headers.gypi ('k') | third_party/WebKit/public/platform/ServiceRegistry.h » ('j') | 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 0811d60a7ae60ea89dfd1e1c1d10593e2182d12d..69a8832d5f18f3186663ee82c4be755db31671bc 100644
--- a/third_party/WebKit/public/platform/Platform.h
+++ b/third_party/WebKit/public/platform/Platform.h
@@ -56,13 +56,11 @@
#include "WebVector.h"
#include "base/metrics/user_metrics_action.h"
-#include "mojo/public/cpp/bindings/interface_request.h"
-#include "mojo/public/cpp/system/core.h"
-
class GrContext;
namespace blink {
+class ServiceRegistry;
class WebAudioBus;
class WebBlobRegistry;
class WebCanvasCaptureHandler;
@@ -543,18 +541,13 @@ public:
virtual WebCrypto* crypto() { return nullptr; }
+ // Mojo ---------------------------------------------------------------
+
+ virtual ServiceRegistry* serviceRegistry();
// Platform events -----------------------------------------------------
// Device Orientation, Device Motion, Device Light, Battery, Gamepad.
- // Connects the mojo handle to the remote service provider.
- template <typename Interface>
- void connectToRemoteService(mojo::InterfaceRequest<Interface> ptr)
- {
- connectToRemoteService(Interface::Name_, ptr.PassMessagePipe());
- }
- virtual void connectToRemoteService(const char* name, mojo::ScopedMessagePipeHandle handle) { }
-
// Request the platform to start listening to the events of the specified
// type and notify the given listener (if not null) when there is an update.
virtual void startListening(WebPlatformEventType type, WebPlatformEventListener* listener) { }
« no previous file with comments | « third_party/WebKit/public/blink_headers.gypi ('k') | third_party/WebKit/public/platform/ServiceRegistry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698