Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1038)

Side by Side Diff: device/bluetooth/bluetooth_adapter_win.h

Issue 1681853003: Add BluetoothRemoteGattServiceWin to BluetoothDeviceWin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 void DevicesPolled(const ScopedVector<BluetoothTaskManagerWin::DeviceState>& 86 void DevicesPolled(const ScopedVector<BluetoothTaskManagerWin::DeviceState>&
87 devices) override; 87 devices) override;
88 88
89 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner() const { 89 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner() const {
90 return ui_task_runner_; 90 return ui_task_runner_;
91 } 91 }
92 const scoped_refptr<BluetoothSocketThread>& socket_thread() const { 92 const scoped_refptr<BluetoothSocketThread>& socket_thread() const {
93 return socket_thread_; 93 return socket_thread_;
94 } 94 }
95 95
96 // The follwing methods are used to send various GATT observer events to
scheib 2016/02/09 23:24:57 These are copied from the bluez code. Instead of d
gogerald1 2016/02/10 18:00:56 Done.
97 // observers.
98 void NotifyGattServiceAdded(BluetoothDevice* device,
99 BluetoothGattService* service);
100 void NotifyGattServiceRemoved(BluetoothDevice* device,
101 BluetoothGattService* service);
102 void NotifyGattServicesDiscovered(BluetoothDevice* device);
103 void NotifyGattDiscoveryCompleteForService(BluetoothGattService* service);
104 void NotifyGattServiceChanged(BluetoothGattService* service);
105
96 protected: 106 protected:
97 // BluetoothAdapter: 107 // BluetoothAdapter:
98 void RemovePairingDelegateInternal( 108 void RemovePairingDelegateInternal(
99 device::BluetoothDevice::PairingDelegate* pairing_delegate) override; 109 device::BluetoothDevice::PairingDelegate* pairing_delegate) override;
100 110
101 private: 111 private:
102 friend class BluetoothAdapterWinTest; 112 friend class BluetoothAdapterWinTest;
103 friend class BluetoothTestWin; 113 friend class BluetoothTestWin;
104 114
105 enum DiscoveryStatus { 115 enum DiscoveryStatus {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 // NOTE: This should remain the last member so it'll be destroyed and 166 // NOTE: This should remain the last member so it'll be destroyed and
157 // invalidate its weak pointers before any other members are destroyed. 167 // invalidate its weak pointers before any other members are destroyed.
158 base::WeakPtrFactory<BluetoothAdapterWin> weak_ptr_factory_; 168 base::WeakPtrFactory<BluetoothAdapterWin> weak_ptr_factory_;
159 169
160 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterWin); 170 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterWin);
161 }; 171 };
162 172
163 } // namespace device 173 } // namespace device
164 174
165 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ 175 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698