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

Side by Side Diff: content/browser/geofencing/geofencing_registration_delegate.h

Issue 629393002: Chromium side of geofencing event dispatching. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@geofencing_serviceworker
Patch Set: nit Created 6 years, 1 month 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
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 CONTENT_BROWSER_GEOFENCING_GEOFENCING_REGISTRATION_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_GEOFENCING_GEOFENCING_REGISTRATION_DELEGATE_H_
6 #define CONTENT_BROWSER_GEOFENCING_GEOFENCING_REGISTRATION_DELEGATE_H_ 6 #define CONTENT_BROWSER_GEOFENCING_GEOFENCING_REGISTRATION_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/common/geofencing_status.h" 9 #include "content/common/geofencing_status.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 // |GeofencingService| has an instance of this class associated with each 13 // |GeofencingService| has an instance of this class associated with each
14 // geofence registration, and uses it to inform about events related to the 14 // geofence registration, and uses it to inform about events related to the
15 // registration, such as the geofence finishing being registered. 15 // registration, such as the geofence finishing being registered.
16 // These methods will always be called on the IO thread. 16 // These methods will always be called on the IO thread.
17 // TODO(mek): Add methods for geofence enter/leave events. 17 // TODO(mek): Add methods for geofence enter/leave events.
18 class GeofencingRegistrationDelegate { 18 class GeofencingRegistrationDelegate {
19 public: 19 public:
20 virtual void RegistrationFinished(int64 geofencing_registration_id, 20 virtual void RegistrationFinished(int64 geofencing_registration_id,
21 GeofencingStatus status) = 0; 21 GeofencingStatus status) = 0;
22 virtual void RegionEntered(int64 geofencing_registration_id) = 0;
23 virtual void RegionExited(int64 geofencing_registration_id) = 0;
22 24
23 protected: 25 protected:
24 virtual ~GeofencingRegistrationDelegate() {} 26 virtual ~GeofencingRegistrationDelegate() {}
25 }; 27 };
26 28
27 } // namespace content 29 } // namespace content
28 30
29 #endif // CONTENT_BROWSER_GEOFENCING_GEOFENCING_REGISTRATION_DELEGATE_H_ 31 #endif // CONTENT_BROWSER_GEOFENCING_GEOFENCING_REGISTRATION_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/geofencing/geofencing_manager.cc ('k') | content/browser/geofencing/geofencing_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698