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 #ifndef CONTENT_BROWSER_GEOLOCATION_LOCATION_API_ADAPTER_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_GEOLOCATION_LOCATION_API_ADAPTER_ANDROID_H_ |
6 #define CONTENT_BROWSER_GEOLOCATION_LOCATION_API_ADAPTER_ANDROID_H_ | 6 #define CONTENT_BROWSER_GEOLOCATION_LOCATION_API_ADAPTER_ANDROID_H_ |
7 #pragma once | |
8 | 7 |
9 #include "base/android/jni_helper.h" | 8 #include "base/android/jni_helper.h" |
10 #include "base/android/scoped_java_ref.h" | 9 #include "base/android/scoped_java_ref.h" |
11 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
12 #include "base/memory/singleton.h" | 11 #include "base/memory/singleton.h" |
13 #include "base/message_loop_proxy.h" | 12 #include "base/message_loop_proxy.h" |
14 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
15 | 14 |
16 namespace content { | 15 namespace content { |
17 struct Geoposition; | 16 struct Geoposition; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 java_location_provider_android_object_; | 73 java_location_provider_android_object_; |
75 LocationProviderAndroid* location_provider_; | 74 LocationProviderAndroid* location_provider_; |
76 | 75 |
77 // Guards against the following member which is accessed on Geolocation | 76 // Guards against the following member which is accessed on Geolocation |
78 // thread and the JNI main thread looper. | 77 // thread and the JNI main thread looper. |
79 base::Lock lock_; | 78 base::Lock lock_; |
80 scoped_refptr<base::MessageLoopProxy> message_loop_; | 79 scoped_refptr<base::MessageLoopProxy> message_loop_; |
81 }; | 80 }; |
82 | 81 |
83 #endif // CONTENT_BROWSER_GEOLOCATION_LOCATION_API_ADAPTER_ANDROID_H_ | 82 #endif // CONTENT_BROWSER_GEOLOCATION_LOCATION_API_ADAPTER_ANDROID_H_ |
OLD | NEW |