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

Unified Diff: content/child/blink_platform_impl.cc

Issue 2460723003: Enable connection to Mojo services from Blink (Closed)
Patch Set: Fix build Created 4 years, 1 month 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: content/child/blink_platform_impl.cc
diff --git a/content/child/blink_platform_impl.cc b/content/child/blink_platform_impl.cc
index aa9951d14bd30f5ab86a8ffbac2039ca87ae1ff7..17db19f1de624783793a050d73fca666b3e8d48f 100644
--- a/content/child/blink_platform_impl.cc
+++ b/content/child/blink_platform_impl.cc
@@ -49,6 +49,7 @@
#include "content/child/web_url_request_util.h"
#include "content/child/worker_thread_registry.h"
#include "content/public/common/content_client.h"
+#include "content/public/common/service_manager_connection.h"
#include "net/base/net_errors.h"
#include "third_party/WebKit/public/platform/WebData.h"
#include "third_party/WebKit/public/platform/WebFloatPoint.h"
@@ -790,6 +791,14 @@ WebFallbackThemeEngine* BlinkPlatformImpl::fallbackThemeEngine() {
return &fallback_theme_engine_;
}
+service_manager::Connector* BlinkPlatformImpl::serviceConnector() {
+ if (!ChildThreadImpl::current())
+ return nullptr;
+ return ChildThreadImpl::current()
+ ->GetServiceManagerConnection()
+ ->GetConnector();
+}
+
blink::Platform::FileHandle BlinkPlatformImpl::databaseOpenFile(
const blink::WebString& vfs_file_name, int desired_flags) {
#if defined(OS_WIN)

Powered by Google App Engine
This is Rietveld 408576698