Index: third_party/WebKit/Source/platform/exported/ServiceRegistry.cpp |
diff --git a/third_party/WebKit/Source/platform/exported/ServiceRegistry.cpp b/third_party/WebKit/Source/platform/exported/ServiceRegistry.cpp |
index b649b3013749c0036478b3dde8773045a59865e8..9689eaf51d8c2d6037c546f61f895c9655b6696d 100644 |
--- a/third_party/WebKit/Source/platform/exported/ServiceRegistry.cpp |
+++ b/third_party/WebKit/Source/platform/exported/ServiceRegistry.cpp |
@@ -2,6 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include "public/platform/Connector.h" |
#include "public/platform/InterfaceProvider.h" |
#include "wtf/StdLibExtras.h" |
@@ -9,11 +10,22 @@ |
namespace blink { |
namespace { |
+class EmptyConnector : public Connector { |
+ void bindInterface(const char* serviceName, |
+ const char* interfaceName, |
+ mojo::ScopedMessagePipeHandle) override {} |
+}; |
+ |
class EmptyInterfaceProvider : public InterfaceProvider { |
void getInterface(const char* name, mojo::ScopedMessagePipeHandle) override {} |
}; |
} |
+Connector* Connector::getEmptyConnector() { |
+ DEFINE_STATIC_LOCAL(EmptyConnector, emptyConnector, ()); |
+ return &emptyConnector; |
+} |
+ |
InterfaceProvider* InterfaceProvider::getEmptyInterfaceProvider() { |
DEFINE_STATIC_LOCAL(EmptyInterfaceProvider, emptyInterfaceProvider, ()); |
return &emptyInterfaceProvider; |