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

Side by Side Diff: content/browser/geofencing/geofencing_provider.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 CONTENT_BROWSER_GEOFENCING_GEOFENCING_PROVIDER_H_
6 #define CONTENT_BROWSER_GEOFENCING_GEOFENCING_PROVIDER_H_
7
8 #include <stdint.h>
9
10 #include "base/callback_forward.h"
11 #include "content/common/geofencing_types.h"
12
13 namespace blink {
14 struct WebCircularGeofencingRegion;
15 };
16
17 namespace content {
18
19 class GeofencingProvider {
20 public:
21 typedef base::Callback<void(GeofencingStatus)> StatusCallback;
22
23 virtual ~GeofencingProvider() {}
24
25 // Called by |GeofencingService| to register a new fence. GeofencingService is
26 // responsible for handling things like duplicate regions, so platform
27 // specific implementations shouldn't have to worry about things like that.
28 // Also GeofencingService should be making sure the total number of geofences
29 // that is registered with the platform specific provider does not exceed the
30 // number of regions supported by the platform, although that isn't
31 // implemented yet.
32 // Implementations of RegisterRegion must asynchronously call the |callback|
33 // to indicate success or failure.
34 virtual void RegisterRegion(int64_t geofencing_registration_id,
35 const blink::WebCircularGeofencingRegion& region,
36 const StatusCallback& callback) = 0;
37
38 // Called by |GeofencingService| to unregister an existing registration. Will
39 // only be called once for each registration.
40 virtual void UnregisterRegion(int64_t geofencing_registration_id) = 0;
41 };
42
43 } // namespace content
44
45 #endif // CONTENT_BROWSER_GEOFENCING_GEOFENCING_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698