Add remoting and PPAPI tests to GN build
[chromium-blink-merge.git] / content / browser / geofencing / geofencing_registration_delegate.h
blob10d6cea60770b2871c2427c4bfa0400a277c4345
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.
5 #ifndef CONTENT_BROWSER_GEOFENCING_GEOFENCING_REGISTRATION_DELEGATE_H_
6 #define CONTENT_BROWSER_GEOFENCING_GEOFENCING_REGISTRATION_DELEGATE_H_
8 #include "base/basictypes.h"
9 #include "content/common/geofencing_types.h"
11 namespace content {
13 // |GeofencingService| has an instance of this class associated with each
14 // geofence registration, and uses it to inform about events related to the
15 // registration, such as the geofence finishing being registered.
16 // These methods will always be called on the IO thread.
17 // TODO(mek): Add methods for geofence enter/leave events.
18 class GeofencingRegistrationDelegate {
19 public:
20 virtual void RegistrationFinished(int64 geofencing_registration_id,
21 GeofencingStatus status) = 0;
22 virtual void RegionEntered(int64 geofencing_registration_id) = 0;
23 virtual void RegionExited(int64 geofencing_registration_id) = 0;
25 protected:
26 virtual ~GeofencingRegistrationDelegate() {}
29 } // namespace content
31 #endif // CONTENT_BROWSER_GEOFENCING_GEOFENCING_REGISTRATION_DELEGATE_H_