| 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 // MSVC++ requires this to be set before any other includes to get M_PI. | 5 // MSVC++ requires this to be set before any other includes to get M_PI. |
| 6 #define _USE_MATH_DEFINES | 6 #define _USE_MATH_DEFINES |
| 7 | 7 |
| 8 #include "content/browser/geofencing/mock_geofencing_service.h" | 8 #include "content/browser/geofencing/mock_geofencing_service.h" |
| 9 | 9 |
| 10 #include <cmath> | 10 #include <cmath> |
| 11 | 11 |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/location.h" | 13 #include "base/location.h" |
| 14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
| 15 #include "base/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
| 16 #include "content/browser/geofencing/geofencing_registration_delegate.h" | 16 #include "content/browser/geofencing/geofencing_registration_delegate.h" |
| 17 #include "third_party/WebKit/public/platform/WebCircularGeofencingRegion.h" | 17 #include "third_party/WebKit/public/platform/WebCircularGeofencingRegion.h" |
| 18 | 18 |
| 19 namespace content { | 19 namespace content { |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 void RegisterRegionResult(GeofencingRegistrationDelegate* delegate, | 23 void RegisterRegionResult(GeofencingRegistrationDelegate* delegate, |
| 24 int64_t geofencing_registration_id, | 24 int64_t geofencing_registration_id, |
| 25 GeofencingStatus status) { | 25 GeofencingStatus status) { |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 } | 117 } |
| 118 return id; | 118 return id; |
| 119 } | 119 } |
| 120 | 120 |
| 121 void MockGeofencingService::UnregisterRegion( | 121 void MockGeofencingService::UnregisterRegion( |
| 122 int64_t geofencing_registration_id) { | 122 int64_t geofencing_registration_id) { |
| 123 registrations_.erase(geofencing_registration_id); | 123 registrations_.erase(geofencing_registration_id); |
| 124 } | 124 } |
| 125 | 125 |
| 126 } // namespace content | 126 } // namespace content |
| OLD | NEW |