OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_ANDROID_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_ANDROID_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_ANDROID_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_ANDROID_H_ |
7 | 7 |
8 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
9 #include "base/android/scoped_java_ref.h" | 9 #include "base/android/scoped_java_ref.h" |
| 10 #include "base/macros.h" |
10 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
11 #include "device/bluetooth/bluetooth_adapter.h" | 12 #include "device/bluetooth/bluetooth_adapter.h" |
12 | 13 |
13 namespace base { | 14 namespace base { |
14 class SequencedTaskRunner; | 15 class SequencedTaskRunner; |
15 } // namespace base | 16 } // namespace base |
16 | 17 |
17 using base::android::ScopedJavaLocalRef; | 18 using base::android::ScopedJavaLocalRef; |
18 | 19 |
19 namespace device { | 20 namespace device { |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 // Note: This should remain the last member so it'll be destroyed and | 132 // Note: This should remain the last member so it'll be destroyed and |
132 // invalidate its weak pointers before any other members are destroyed. | 133 // invalidate its weak pointers before any other members are destroyed. |
133 base::WeakPtrFactory<BluetoothAdapterAndroid> weak_ptr_factory_; | 134 base::WeakPtrFactory<BluetoothAdapterAndroid> weak_ptr_factory_; |
134 | 135 |
135 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterAndroid); | 136 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterAndroid); |
136 }; | 137 }; |
137 | 138 |
138 } // namespace device | 139 } // namespace device |
139 | 140 |
140 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_ANDROID_H_ | 141 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_ANDROID_H_ |
OLD | NEW |