OLD | NEW |
| (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_REGISTRATION_DELEGATE_H_ | |
6 #define CONTENT_BROWSER_GEOFENCING_GEOFENCING_REGISTRATION_DELEGATE_H_ | |
7 | |
8 #include <stdint.h> | |
9 | |
10 #include "content/common/geofencing_types.h" | |
11 | |
12 namespace content { | |
13 | |
14 // |GeofencingService| has an instance of this class associated with each | |
15 // geofence registration, and uses it to inform about events related to the | |
16 // registration, such as the geofence finishing being registered. | |
17 // These methods will always be called on the IO thread. | |
18 // TODO(mek): Add methods for geofence enter/leave events. | |
19 class GeofencingRegistrationDelegate { | |
20 public: | |
21 virtual void RegistrationFinished(int64_t geofencing_registration_id, | |
22 GeofencingStatus status) = 0; | |
23 virtual void RegionEntered(int64_t geofencing_registration_id) = 0; | |
24 virtual void RegionExited(int64_t geofencing_registration_id) = 0; | |
25 | |
26 protected: | |
27 virtual ~GeofencingRegistrationDelegate() {} | |
28 }; | |
29 | |
30 } // namespace content | |
31 | |
32 #endif // CONTENT_BROWSER_GEOFENCING_GEOFENCING_REGISTRATION_DELEGATE_H_ | |
OLD | NEW |