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

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

Issue 1292263002: bluetooth: Create base class BluetoothDevice::CreateGattConnection impl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bt-adapter-
Patch Set: fix ProximityAuthBluetoothLowEnergyConnectionTest Created 5 years, 3 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
« no previous file with comments | « device/bluetooth/bluetooth_device_chromeos.cc ('k') | device/bluetooth/bluetooth_device_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_DEVICE_WIN_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 22 matching lines...) Expand all
33 33
34 // BluetoothDevice override 34 // BluetoothDevice override
35 uint32 GetBluetoothClass() const override; 35 uint32 GetBluetoothClass() const override;
36 std::string GetAddress() const override; 36 std::string GetAddress() const override;
37 VendorIDSource GetVendorIDSource() const override; 37 VendorIDSource GetVendorIDSource() const override;
38 uint16 GetVendorID() const override; 38 uint16 GetVendorID() const override;
39 uint16 GetProductID() const override; 39 uint16 GetProductID() const override;
40 uint16 GetDeviceID() const override; 40 uint16 GetDeviceID() const override;
41 bool IsPaired() const override; 41 bool IsPaired() const override;
42 bool IsConnected() const override; 42 bool IsConnected() const override;
43 bool IsGattConnected() const override;
43 bool IsConnectable() const override; 44 bool IsConnectable() const override;
44 bool IsConnecting() const override; 45 bool IsConnecting() const override;
45 UUIDList GetUUIDs() const override; 46 UUIDList GetUUIDs() const override;
46 int16 GetInquiryRSSI() const override; 47 int16 GetInquiryRSSI() const override;
47 int16 GetInquiryTxPower() const override; 48 int16 GetInquiryTxPower() const override;
48 bool ExpectingPinCode() const override; 49 bool ExpectingPinCode() const override;
49 bool ExpectingPasskey() const override; 50 bool ExpectingPasskey() const override;
50 bool ExpectingConfirmation() const override; 51 bool ExpectingConfirmation() const override;
51 void GetConnectionInfo(const ConnectionInfoCallback& callback) override; 52 void GetConnectionInfo(const ConnectionInfoCallback& callback) override;
52 void Connect(PairingDelegate* pairing_delegate, 53 void Connect(PairingDelegate* pairing_delegate,
(...skipping 28 matching lines...) Expand all
81 // fields and services stored in |device_state|. 82 // fields and services stored in |device_state|.
82 bool IsEqual(const BluetoothTaskManagerWin::DeviceState& device_state); 83 bool IsEqual(const BluetoothTaskManagerWin::DeviceState& device_state);
83 84
84 // Updates this instance with all fields and properties stored in 85 // Updates this instance with all fields and properties stored in
85 // |device_state|. 86 // |device_state|.
86 void Update(const BluetoothTaskManagerWin::DeviceState& device_state); 87 void Update(const BluetoothTaskManagerWin::DeviceState& device_state);
87 88
88 protected: 89 protected:
89 // BluetoothDevice override 90 // BluetoothDevice override
90 std::string GetDeviceName() const override; 91 std::string GetDeviceName() const override;
92 void CreateGattConnectionImpl() override;
93 void DisconnectGatt() override;
91 94
92 private: 95 private:
93 friend class BluetoothAdapterWin; 96 friend class BluetoothAdapterWin;
94 97
95 typedef ScopedVector<BluetoothServiceRecordWin> ServiceRecordList; 98 typedef ScopedVector<BluetoothServiceRecordWin> ServiceRecordList;
96 99
97 // Used by BluetoothAdapterWin to update the visible state during 100 // Used by BluetoothAdapterWin to update the visible state during
98 // discovery. 101 // discovery.
99 void SetVisible(bool visible); 102 void SetVisible(bool visible);
100 103
(...skipping 29 matching lines...) Expand all
130 133
131 // The service records retrieved from SDP. 134 // The service records retrieved from SDP.
132 ServiceRecordList service_record_list_; 135 ServiceRecordList service_record_list_;
133 136
134 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceWin); 137 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceWin);
135 }; 138 };
136 139
137 } // namespace device 140 } // namespace device
138 141
139 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ 142 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_device_chromeos.cc ('k') | device/bluetooth/bluetooth_device_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698