| 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 #include "content/browser/geofencing/geofencing_service.h" | 5 #include "content/browser/geofencing/geofencing_service.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
| 11 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
| 12 #include "base/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
| 13 #include "content/browser/geofencing/geofencing_provider.h" | 13 #include "content/browser/geofencing/geofencing_provider.h" |
| 14 #include "content/browser/geofencing/geofencing_registration_delegate.h" | 14 #include "content/browser/geofencing/geofencing_registration_delegate.h" |
| 15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
| 16 #include "third_party/WebKit/public/platform/WebCircularGeofencingRegion.h" | 16 #include "third_party/WebKit/public/platform/WebCircularGeofencingRegion.h" |
| 17 | 17 |
| 18 namespace content { | 18 namespace content { |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 void RunSoon(const base::Closure& callback) { | 22 void RunSoon(const base::Closure& callback) { |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 registration_iterator->second.delegate->RegistrationFinished( | 194 registration_iterator->second.delegate->RegistrationFinished( |
| 195 geofencing_registration_id, status); | 195 geofencing_registration_id, status); |
| 196 | 196 |
| 197 if (status != GEOFENCING_STATUS_OK) { | 197 if (status != GEOFENCING_STATUS_OK) { |
| 198 // Registration failed, remove from our book-keeping. | 198 // Registration failed, remove from our book-keeping. |
| 199 registrations_.erase(registration_iterator); | 199 registrations_.erase(registration_iterator); |
| 200 } | 200 } |
| 201 } | 201 } |
| 202 | 202 |
| 203 } // namespace content | 203 } // namespace content |
| OLD | NEW |