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 DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 return socket_thread_; | 93 return socket_thread_; |
94 } | 94 } |
95 | 95 |
96 protected: | 96 protected: |
97 // BluetoothAdapter: | 97 // BluetoothAdapter: |
98 void RemovePairingDelegateInternal( | 98 void RemovePairingDelegateInternal( |
99 device::BluetoothDevice::PairingDelegate* pairing_delegate) override; | 99 device::BluetoothDevice::PairingDelegate* pairing_delegate) override; |
100 | 100 |
101 private: | 101 private: |
102 friend class BluetoothAdapterWinTest; | 102 friend class BluetoothAdapterWinTest; |
| 103 friend class BluetoothTestWin; |
103 | 104 |
104 enum DiscoveryStatus { | 105 enum DiscoveryStatus { |
105 NOT_DISCOVERING, | 106 NOT_DISCOVERING, |
106 DISCOVERY_STARTING, | 107 DISCOVERY_STARTING, |
107 DISCOVERING, | 108 DISCOVERING, |
108 DISCOVERY_STOPPING | 109 DISCOVERY_STOPPING |
109 }; | 110 }; |
110 | 111 |
111 explicit BluetoothAdapterWin(const InitCallback& init_callback); | 112 explicit BluetoothAdapterWin(const InitCallback& init_callback); |
112 ~BluetoothAdapterWin() override; | 113 ~BluetoothAdapterWin() override; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 // NOTE: This should remain the last member so it'll be destroyed and | 156 // NOTE: This should remain the last member so it'll be destroyed and |
156 // invalidate its weak pointers before any other members are destroyed. | 157 // invalidate its weak pointers before any other members are destroyed. |
157 base::WeakPtrFactory<BluetoothAdapterWin> weak_ptr_factory_; | 158 base::WeakPtrFactory<BluetoothAdapterWin> weak_ptr_factory_; |
158 | 159 |
159 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterWin); | 160 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterWin); |
160 }; | 161 }; |
161 | 162 |
162 } // namespace device | 163 } // namespace device |
163 | 164 |
164 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ | 165 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ |
OLD | NEW |