| OLD | NEW |
| 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_PROVIDER_H_ | 5 #ifndef CONTENT_BROWSER_GEOFENCING_GEOFENCING_PROVIDER_H_ |
| 6 #define CONTENT_BROWSER_GEOFENCING_GEOFENCING_PROVIDER_H_ | 6 #define CONTENT_BROWSER_GEOFENCING_GEOFENCING_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/callback_forward.h" | 9 #include "base/callback_forward.h" |
| 10 #include "content/common/geofencing_status.h" | 10 #include "content/common/geofencing_types.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 struct WebCircularGeofencingRegion; | 13 struct WebCircularGeofencingRegion; |
| 14 }; | 14 }; |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| 17 | 17 |
| 18 class GeofencingProvider { | 18 class GeofencingProvider { |
| 19 public: | 19 public: |
| 20 typedef base::Callback<void(GeofencingStatus)> StatusCallback; | 20 typedef base::Callback<void(GeofencingStatus)> StatusCallback; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 35 const StatusCallback& callback) = 0; | 35 const StatusCallback& callback) = 0; |
| 36 | 36 |
| 37 // Called by |GeofencingService| to unregister an existing registration. Will | 37 // Called by |GeofencingService| to unregister an existing registration. Will |
| 38 // only be called once for each registration. | 38 // only be called once for each registration. |
| 39 virtual void UnregisterRegion(int64 geofencing_registration_id) = 0; | 39 virtual void UnregisterRegion(int64 geofencing_registration_id) = 0; |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 } // namespace content | 42 } // namespace content |
| 43 | 43 |
| 44 #endif // CONTENT_BROWSER_GEOFENCING_GEOFENCING_PROVIDER_H_ | 44 #endif // CONTENT_BROWSER_GEOFENCING_GEOFENCING_PROVIDER_H_ |
| OLD | NEW |