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

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

Issue 680503004: Cleanup after http://crrev.com/623813002/ now the chrome side has landed. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « Source/modules/geofencing/Geofencing.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebGeofencingProvider_h 5 #ifndef WebGeofencingProvider_h
6 #define WebGeofencingProvider_h 6 #define WebGeofencingProvider_h
7 7
8 #include "public/platform/WebCallbacks.h" 8 #include "public/platform/WebCallbacks.h"
9 #include "public/platform/WebVector.h" 9 #include "public/platform/WebVector.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 struct WebCircularGeofencingRegion; 13 struct WebCircularGeofencingRegion;
14 struct WebGeofencingError; 14 struct WebGeofencingError;
15 struct WebGeofencingRegistration; 15 struct WebGeofencingRegistration;
16 class WebServiceWorkerRegistration; 16 class WebServiceWorkerRegistration;
17 class WebString; 17 class WebString;
18 18
19 typedef WebCallbacks<void, WebGeofencingError> WebGeofencingCallbacks; 19 typedef WebCallbacks<void, WebGeofencingError> WebGeofencingCallbacks;
20 typedef WebCallbacks<WebVector<WebGeofencingRegistration>, WebGeofencingError> W ebGeofencingRegionsCallbacks; 20 typedef WebCallbacks<WebVector<WebGeofencingRegistration>, WebGeofencingError> W ebGeofencingRegionsCallbacks;
21 21
22 class WebGeofencingProvider { 22 class WebGeofencingProvider {
23 public: 23 public:
24 virtual ~WebGeofencingProvider() { } 24 virtual ~WebGeofencingProvider() { }
25 25
26 // Registers a region. 26 // Registers a region.
27 // Ownership of the WebGeofencingCallbacks is transferred to the client. 27 // Ownership of the WebGeofencingCallbacks is transferred to the client.
28 virtual void registerRegion(const WebString& regionId, const WebCircularGeof encingRegion&, WebGeofencingCallbacks*) { }
29 virtual void registerRegion(const WebString& regionId, const WebCircularGeof encingRegion&, WebServiceWorkerRegistration*, WebGeofencingCallbacks*) { } 28 virtual void registerRegion(const WebString& regionId, const WebCircularGeof encingRegion&, WebServiceWorkerRegistration*, WebGeofencingCallbacks*) { }
30 29
31 // Unregisters a region. 30 // Unregisters a region.
32 // Ownership of the WebGeofencingCallbacks is transferred to the client. 31 // Ownership of the WebGeofencingCallbacks is transferred to the client.
33 virtual void unregisterRegion(const WebString& regionId, WebGeofencingCallba cks*) { }
34 virtual void unregisterRegion(const WebString& regionId, WebServiceWorkerReg istration*, WebGeofencingCallbacks*) { } 32 virtual void unregisterRegion(const WebString& regionId, WebServiceWorkerReg istration*, WebGeofencingCallbacks*) { }
35 33
36 // Returns all the currently registered regions. 34 // Returns all the currently registered regions.
37 // Ownership of the WebGeofencingRegionsCallbacks is transferred to the clie nt. 35 // Ownership of the WebGeofencingRegionsCallbacks is transferred to the clie nt.
38 virtual void getRegisteredRegions(WebGeofencingRegionsCallbacks*) { }
39 virtual void getRegisteredRegions(WebServiceWorkerRegistration*, WebGeofenci ngRegionsCallbacks*) { } 36 virtual void getRegisteredRegions(WebServiceWorkerRegistration*, WebGeofenci ngRegionsCallbacks*) { }
40 }; 37 };
41 38
42 } // namespace blink 39 } // namespace blink
43 40
44 #endif // WebGeofencingProvider_h 41 #endif // WebGeofencingProvider_h
OLDNEW
« no previous file with comments | « Source/modules/geofencing/Geofencing.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698