| 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 <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 virtual void DiscoveryStarted(bool success) OVERRIDE; | 65 virtual void DiscoveryStarted(bool success) OVERRIDE; |
| 66 virtual void DiscoveryStopped() OVERRIDE; | 66 virtual void DiscoveryStopped() OVERRIDE; |
| 67 virtual void DevicesDiscovered( | 67 virtual void DevicesDiscovered( |
| 68 const ScopedVector<BluetoothTaskManagerWin::DeviceState>& devices) | 68 const ScopedVector<BluetoothTaskManagerWin::DeviceState>& devices) |
| 69 OVERRIDE; | 69 OVERRIDE; |
| 70 | 70 |
| 71 virtual void DevicesUpdated( | 71 virtual void DevicesUpdated( |
| 72 const ScopedVector<BluetoothTaskManagerWin::DeviceState>& devices) | 72 const ScopedVector<BluetoothTaskManagerWin::DeviceState>& devices) |
| 73 OVERRIDE; | 73 OVERRIDE; |
| 74 | 74 |
| 75 scoped_refptr<base::SequencedTaskRunner> ui_task_runner(); |
| 76 scoped_refptr<BluetoothSocketThreadWin> socket_thread(); |
| 77 |
| 75 protected: | 78 protected: |
| 76 // BluetoothAdapter override | 79 // BluetoothAdapter override |
| 77 virtual void RemovePairingDelegateInternal( | 80 virtual void RemovePairingDelegateInternal( |
| 78 device::BluetoothDevice::PairingDelegate* pairing_delegate) OVERRIDE; | 81 device::BluetoothDevice::PairingDelegate* pairing_delegate) OVERRIDE; |
| 79 | 82 |
| 80 private: | 83 private: |
| 81 friend class BluetoothAdapterFactory; | 84 friend class BluetoothAdapterFactory; |
| 82 friend class BluetoothAdapterWinTest; | 85 friend class BluetoothAdapterWinTest; |
| 83 | 86 |
| 84 enum DiscoveryStatus { | 87 enum DiscoveryStatus { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 // NOTE: This should remain the last member so it'll be destroyed and | 135 // NOTE: This should remain the last member so it'll be destroyed and |
| 133 // invalidate its weak pointers before any other members are destroyed. | 136 // invalidate its weak pointers before any other members are destroyed. |
| 134 base::WeakPtrFactory<BluetoothAdapterWin> weak_ptr_factory_; | 137 base::WeakPtrFactory<BluetoothAdapterWin> weak_ptr_factory_; |
| 135 | 138 |
| 136 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterWin); | 139 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterWin); |
| 137 }; | 140 }; |
| 138 | 141 |
| 139 } // namespace device | 142 } // namespace device |
| 140 | 143 |
| 141 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ | 144 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ |
| OLD | NEW |