OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/geolocation/location_api_adapter_android.h" | 5 #include "content/browser/geolocation/location_api_adapter_android.h" |
6 | 6 |
| 7 #include "base/android/context_utils.h" |
7 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
8 #include "base/android/jni_string.h" | 9 #include "base/android/jni_string.h" |
9 #include "base/bind.h" | 10 #include "base/bind.h" |
10 #include "base/location.h" | 11 #include "base/location.h" |
11 #include "base/thread_task_runner_handle.h" | 12 #include "base/thread_task_runner_handle.h" |
12 #include "content/browser/geolocation/location_provider_android.h" | 13 #include "content/browser/geolocation/location_provider_android.h" |
13 #include "jni/LocationProviderAdapter_jni.h" | 14 #include "jni/LocationProviderAdapter_jni.h" |
14 | 15 |
15 using base::android::AttachCurrentThread; | 16 using base::android::AttachCurrentThread; |
16 using base::android::CheckException; | 17 using base::android::CheckException; |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 base::AutoLock lock(lock_); | 163 base::AutoLock lock(lock_); |
163 if (!task_runner_.get()) | 164 if (!task_runner_.get()) |
164 return; | 165 return; |
165 task_runner_->PostTask( | 166 task_runner_->PostTask( |
166 FROM_HERE, | 167 FROM_HERE, |
167 base::Bind(&AndroidLocationApiAdapter::NotifyProviderNewGeoposition, | 168 base::Bind(&AndroidLocationApiAdapter::NotifyProviderNewGeoposition, |
168 geoposition)); | 169 geoposition)); |
169 } | 170 } |
170 | 171 |
171 } // namespace content | 172 } // namespace content |
OLD | NEW |