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: | 83 // BluetoothAdapter: |
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 BluetoothAdapterWinTest; | 88 friend class BluetoothAdapterWinTest; |
82 | 89 |
83 enum DiscoveryStatus { | 90 enum DiscoveryStatus { |
84 NOT_DISCOVERING, | 91 NOT_DISCOVERING, |
(...skipping 46 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 | 138 // NOTE: This should remain the last member so it'll be destroyed and |
132 // invalidate its weak pointers before any other members are destroyed. | 139 // invalidate its weak pointers before any other members are destroyed. |
133 base::WeakPtrFactory<BluetoothAdapterWin> weak_ptr_factory_; | 140 base::WeakPtrFactory<BluetoothAdapterWin> weak_ptr_factory_; |
134 | 141 |
135 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterWin); | 142 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterWin); |
136 }; | 143 }; |
137 | 144 |
138 } // namespace device | 145 } // namespace device |
139 | 146 |
140 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ | 147 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ |
OLD | NEW |