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

Unified Diff: content/child/blink_platform_impl.cc

Issue 1192713004: Update client side navigator.connect API to use ServicePortCollection [2/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 5 years, 6 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 | « content/child/blink_platform_impl.h ('k') | content/child/child_thread_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/blink_platform_impl.cc
diff --git a/content/child/blink_platform_impl.cc b/content/child/blink_platform_impl.cc
index 1bcceadb67f77c42ab953e92161df2494fe91154..2acc641064f0286716ccec1de8a08febeda4f246 100644
--- a/content/child/blink_platform_impl.cc
+++ b/content/child/blink_platform_impl.cc
@@ -43,7 +43,7 @@
#include "content/child/child_thread_impl.h"
#include "content/child/content_child_helpers.h"
#include "content/child/geofencing/web_geofencing_provider_impl.h"
-#include "content/child/navigator_connect/navigator_connect_provider.h"
+#include "content/child/navigator_connect/service_port_provider.h"
#include "content/child/notifications/notification_dispatcher.h"
#include "content/child/notifications/notification_manager.h"
#include "content/child/permissions/permission_dispatcher.h"
@@ -1192,13 +1192,9 @@ blink::WebPushProvider* BlinkPlatformImpl::pushProvider() {
push_dispatcher_.get());
}
-blink::WebNavigatorConnectProvider*
-BlinkPlatformImpl::navigatorConnectProvider() {
- if (!thread_safe_sender_.get())
- return nullptr;
-
- return NavigatorConnectProvider::ThreadSpecificInstance(
- thread_safe_sender_.get(), main_thread_task_runner_);
+blink::WebServicePortProvider* BlinkPlatformImpl::createServicePortProvider(
+ blink::WebServicePortProviderClient* client) {
+ return new ServicePortProvider(client, main_thread_task_runner_);
}
blink::WebPermissionClient* BlinkPlatformImpl::permissionClient() {
« no previous file with comments | « content/child/blink_platform_impl.h ('k') | content/child/child_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698