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 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DISCOVERY_SESSION_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DISCOVERY_SESSION_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_DISCOVERY_SESSION_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DISCOVERY_SESSION_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.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 #include "device/bluetooth/bluetooth_discovery_filter.h" | 13 #include "device/bluetooth/bluetooth_discovery_filter.h" |
13 #include "device/bluetooth/bluetooth_discovery_session_outcome.h" | 14 #include "device/bluetooth/bluetooth_discovery_session_outcome.h" |
14 #include "device/bluetooth/bluetooth_export.h" | 15 #include "device/bluetooth/bluetooth_export.h" |
15 | 16 |
16 namespace device { | 17 namespace device { |
17 | 18 |
18 // BluetoothDiscoverySession represents a current active or inactive device | 19 // BluetoothDiscoverySession represents a current active or inactive device |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 // Note: This should remain the last member so it'll be destroyed and | 108 // Note: This should remain the last member so it'll be destroyed and |
108 // invalidate its weak pointers before any other members are destroyed. | 109 // invalidate its weak pointers before any other members are destroyed. |
109 base::WeakPtrFactory<BluetoothDiscoverySession> weak_ptr_factory_; | 110 base::WeakPtrFactory<BluetoothDiscoverySession> weak_ptr_factory_; |
110 | 111 |
111 DISALLOW_COPY_AND_ASSIGN(BluetoothDiscoverySession); | 112 DISALLOW_COPY_AND_ASSIGN(BluetoothDiscoverySession); |
112 }; | 113 }; |
113 | 114 |
114 } // namespace device | 115 } // namespace device |
115 | 116 |
116 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DISCOVERY_SESSION_H_ | 117 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DISCOVERY_SESSION_H_ |
OLD | NEW |