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

Unified Diff: content/child/geofencing/web_geofencing_provider_impl.cc

Issue 623823002: Chrome side of passing on the service worker registration with geofencing API calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 2 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
Index: content/child/geofencing/web_geofencing_provider_impl.cc
diff --git a/content/child/geofencing/web_geofencing_provider_impl.cc b/content/child/geofencing/web_geofencing_provider_impl.cc
index d058ffeb8da384b91976753bd1bab175796a36b2..5d78b9810b805d8f9ebb830ae7d131e55ab8322a 100644
--- a/content/child/geofencing/web_geofencing_provider_impl.cc
+++ b/content/child/geofencing/web_geofencing_provider_impl.cc
@@ -20,19 +20,24 @@ WebGeofencingProviderImpl::~WebGeofencingProviderImpl() {
void WebGeofencingProviderImpl::registerRegion(
const blink::WebString& regionId,
const blink::WebCircularGeofencingRegion& region,
+ blink::WebServiceWorkerRegistration* service_worker_registration,
blink::WebGeofencingCallbacks* callbacks) {
- GetDispatcher()->RegisterRegion(regionId, region, callbacks);
+ GetDispatcher()->RegisterRegion(
+ regionId, region, service_worker_registration, callbacks);
}
void WebGeofencingProviderImpl::unregisterRegion(
const blink::WebString& regionId,
+ blink::WebServiceWorkerRegistration* service_worker_registration,
blink::WebGeofencingCallbacks* callbacks) {
- GetDispatcher()->UnregisterRegion(regionId, callbacks);
+ GetDispatcher()->UnregisterRegion(
+ regionId, service_worker_registration, callbacks);
}
void WebGeofencingProviderImpl::getRegisteredRegions(
+ blink::WebServiceWorkerRegistration* service_worker_registration,
blink::WebGeofencingRegionsCallbacks* callbacks) {
- GetDispatcher()->GetRegisteredRegions(callbacks);
+ GetDispatcher()->GetRegisteredRegions(service_worker_registration, callbacks);
}
GeofencingDispatcher* WebGeofencingProviderImpl::GetDispatcher() {

Powered by Google App Engine
This is Rietveld 408576698