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

Unified Diff: public/platform/WebGeofencingProvider.h

Issue 623813002: Blink side of exposing the service worker registration associated with geofencing API calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: hopefully correctly fix compile 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
« no previous file with comments | « Source/platform/RuntimeEnabledFeatures.in ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebGeofencingProvider.h
diff --git a/public/platform/WebGeofencingProvider.h b/public/platform/WebGeofencingProvider.h
index b710bc813a7afa3b2cb62efdd5221f8b54f416c1..d8edcbf48c0486fb11c3596c44f3e1f9cb5fad30 100644
--- a/public/platform/WebGeofencingProvider.h
+++ b/public/platform/WebGeofencingProvider.h
@@ -13,6 +13,7 @@ namespace blink {
struct WebCircularGeofencingRegion;
struct WebGeofencingError;
struct WebGeofencingRegistration;
+class WebServiceWorkerRegistration;
class WebString;
typedef WebCallbacks<void, WebGeofencingError> WebGeofencingCallbacks;
@@ -24,15 +25,18 @@ public:
// Registers a region.
// Ownership of the WebGeofencingCallbacks is transferred to the client.
- virtual void registerRegion(const WebString& regionId, const WebCircularGeofencingRegion&, WebGeofencingCallbacks*) = 0;
+ virtual void registerRegion(const WebString& regionId, const WebCircularGeofencingRegion&, WebGeofencingCallbacks*) { }
+ virtual void registerRegion(const WebString& regionId, const WebCircularGeofencingRegion&, WebServiceWorkerRegistration*, WebGeofencingCallbacks*) { }
// Unregisters a region.
// Ownership of the WebGeofencingCallbacks is transferred to the client.
- virtual void unregisterRegion(const WebString& regionId, WebGeofencingCallbacks*) = 0;
+ virtual void unregisterRegion(const WebString& regionId, WebGeofencingCallbacks*) { }
+ virtual void unregisterRegion(const WebString& regionId, WebServiceWorkerRegistration*, WebGeofencingCallbacks*) { }
// Returns all the currently registered regions.
// Ownership of the WebGeofencingRegionsCallbacks is transferred to the client.
- virtual void getRegisteredRegions(WebGeofencingRegionsCallbacks*) = 0;
+ virtual void getRegisteredRegions(WebGeofencingRegionsCallbacks*) { }
+ virtual void getRegisteredRegions(WebServiceWorkerRegistration*, WebGeofencingRegionsCallbacks*) { }
};
} // namespace blink
« no previous file with comments | « Source/platform/RuntimeEnabledFeatures.in ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698