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

Side by Side Diff: third_party/WebKit/public/platform/WebGeofencingProvider.h

Issue 1972733002: Delete geofencing implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark histogram suffix as obsolete Created 4 years, 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WebGeofencingProvider_h
6 #define WebGeofencingProvider_h
7
8 #include "public/platform/WebCallbacks.h"
9 #include "public/platform/WebVector.h"
10
11 namespace blink {
12
13 struct WebCircularGeofencingRegion;
14 struct WebGeofencingError;
15 struct WebGeofencingRegistration;
16 class WebServiceWorkerRegistration;
17 class WebString;
18
19 using WebGeofencingCallbacks = WebCallbacks<void, const WebGeofencingError&>;
20 using WebGeofencingRegionsCallbacks = WebCallbacks<const WebVector<WebGeofencing Registration>&, const WebGeofencingError&>;
21
22 class WebGeofencingProvider {
23 public:
24 virtual ~WebGeofencingProvider() { }
25
26 // Registers a region.
27 // Ownership of the WebGeofencingCallbacks is transferred to the client.
28 virtual void registerRegion(const WebString& regionId, const WebCircularGeof encingRegion&, WebServiceWorkerRegistration*, WebGeofencingCallbacks*) { }
29
30 // Unregisters a region.
31 // Ownership of the WebGeofencingCallbacks is transferred to the client.
32 virtual void unregisterRegion(const WebString& regionId, WebServiceWorkerReg istration*, WebGeofencingCallbacks*) { }
33
34 // Returns all the currently registered regions.
35 // Ownership of the WebGeofencingRegionsCallbacks is transferred to the clie nt.
36 virtual void getRegisteredRegions(WebServiceWorkerRegistration*, WebGeofenci ngRegionsCallbacks*) { }
37 };
38
39 } // namespace blink
40
41 #endif // WebGeofencingProvider_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698