| 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 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner() const { |
| 76 return ui_task_runner_; |
| 77 } |
| 78 const scoped_refptr<BluetoothSocketThreadWin>& socket_thread() const { |
| 79 return socket_thread_; |
| 80 } |
| 81 |
| 75 protected: | 82 protected: |
| 76 // BluetoothAdapter override | 83 // BluetoothAdapter override |
| 77 virtual void RemovePairingDelegateInternal( | 84 virtual void RemovePairingDelegateInternal( |
| 78 device::BluetoothDevice::PairingDelegate* pairing_delegate) OVERRIDE; | 85 device::BluetoothDevice::PairingDelegate* pairing_delegate) OVERRIDE; |
| 79 | 86 |
| 80 private: | 87 private: |
| 81 friend class BluetoothAdapterFactory; | 88 friend class BluetoothAdapterFactory; |
| 82 friend class BluetoothAdapterWinTest; | 89 friend class BluetoothAdapterWinTest; |
| 83 | 90 |
| 84 enum DiscoveryStatus { | 91 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 | 139 // NOTE: This should remain the last member so it'll be destroyed and |
| 133 // invalidate its weak pointers before any other members are destroyed. | 140 // invalidate its weak pointers before any other members are destroyed. |
| 134 base::WeakPtrFactory<BluetoothAdapterWin> weak_ptr_factory_; | 141 base::WeakPtrFactory<BluetoothAdapterWin> weak_ptr_factory_; |
| 135 | 142 |
| 136 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterWin); | 143 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterWin); |
| 137 }; | 144 }; |
| 138 | 145 |
| 139 } // namespace device | 146 } // namespace device |
| 140 | 147 |
| 141 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ | 148 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ |
| OLD | NEW |