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

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

Issue 1107433002: Update {virtual,override} to follow C++11 style in device. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync and git cl format Created 5 years, 8 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_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 10 matching lines...) Expand all
21 class BluetoothSocketThread; 21 class BluetoothSocketThread;
22 22
23 class DEVICE_BLUETOOTH_EXPORT BluetoothDeviceWin : public BluetoothDevice { 23 class DEVICE_BLUETOOTH_EXPORT BluetoothDeviceWin : public BluetoothDevice {
24 public: 24 public:
25 explicit BluetoothDeviceWin( 25 explicit BluetoothDeviceWin(
26 const BluetoothTaskManagerWin::DeviceState& device_state, 26 const BluetoothTaskManagerWin::DeviceState& device_state,
27 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner, 27 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner,
28 const scoped_refptr<BluetoothSocketThread>& socket_thread, 28 const scoped_refptr<BluetoothSocketThread>& socket_thread,
29 net::NetLog* net_log, 29 net::NetLog* net_log,
30 const net::NetLog::Source& net_log_source); 30 const net::NetLog::Source& net_log_source);
31 virtual ~BluetoothDeviceWin(); 31 ~BluetoothDeviceWin() override;
32 32
33 // BluetoothDevice override 33 // BluetoothDevice override
34 virtual uint32 GetBluetoothClass() const override; 34 uint32 GetBluetoothClass() const override;
35 virtual std::string GetAddress() const override; 35 std::string GetAddress() const override;
36 virtual VendorIDSource GetVendorIDSource() const override; 36 VendorIDSource GetVendorIDSource() const override;
37 virtual uint16 GetVendorID() const override; 37 uint16 GetVendorID() const override;
38 virtual uint16 GetProductID() const override; 38 uint16 GetProductID() const override;
39 virtual uint16 GetDeviceID() const override; 39 uint16 GetDeviceID() const override;
40 virtual bool IsPaired() const override; 40 bool IsPaired() const override;
41 virtual bool IsConnected() const override; 41 bool IsConnected() const override;
42 virtual bool IsConnectable() const override; 42 bool IsConnectable() const override;
43 virtual bool IsConnecting() const override; 43 bool IsConnecting() const override;
44 virtual UUIDList GetUUIDs() const override; 44 UUIDList GetUUIDs() const override;
45 virtual bool ExpectingPinCode() const override; 45 bool ExpectingPinCode() const override;
46 virtual bool ExpectingPasskey() const override; 46 bool ExpectingPasskey() const override;
47 virtual bool ExpectingConfirmation() const override; 47 bool ExpectingConfirmation() const override;
48 virtual void GetConnectionInfo( 48 void GetConnectionInfo(const ConnectionInfoCallback& callback) override;
49 const ConnectionInfoCallback& callback) override; 49 void Connect(PairingDelegate* pairing_delegate,
50 virtual void Connect( 50 const base::Closure& callback,
51 PairingDelegate* pairing_delegate, 51 const ConnectErrorCallback& error_callback) override;
52 const base::Closure& callback, 52 void SetPinCode(const std::string& pincode) override;
53 const ConnectErrorCallback& error_callback) override; 53 void SetPasskey(uint32 passkey) override;
54 virtual void SetPinCode(const std::string& pincode) override; 54 void ConfirmPairing() override;
55 virtual void SetPasskey(uint32 passkey) override; 55 void RejectPairing() override;
56 virtual void ConfirmPairing() override; 56 void CancelPairing() override;
57 virtual void RejectPairing() override; 57 void Disconnect(const base::Closure& callback,
58 virtual void CancelPairing() override; 58 const ErrorCallback& error_callback) override;
59 virtual void Disconnect( 59 void Forget(const ErrorCallback& error_callback) override;
60 const base::Closure& callback, 60 void ConnectToService(
61 const ErrorCallback& error_callback) override;
62 virtual void Forget(const ErrorCallback& error_callback) override;
63 virtual void ConnectToService(
64 const BluetoothUUID& uuid, 61 const BluetoothUUID& uuid,
65 const ConnectToServiceCallback& callback, 62 const ConnectToServiceCallback& callback,
66 const ConnectToServiceErrorCallback& error_callback) override; 63 const ConnectToServiceErrorCallback& error_callback) override;
67 virtual void ConnectToServiceInsecurely( 64 void ConnectToServiceInsecurely(
68 const BluetoothUUID& uuid, 65 const BluetoothUUID& uuid,
69 const ConnectToServiceCallback& callback, 66 const ConnectToServiceCallback& callback,
70 const ConnectToServiceErrorCallback& error_callback) override; 67 const ConnectToServiceErrorCallback& error_callback) override;
71 virtual void CreateGattConnection( 68 void CreateGattConnection(
72 const GattConnectionCallback& callback, 69 const GattConnectionCallback& callback,
73 const ConnectErrorCallback& error_callback) override; 70 const ConnectErrorCallback& error_callback) override;
74 71
75 // Used by BluetoothProfileWin to retrieve the service record for the given 72 // Used by BluetoothProfileWin to retrieve the service record for the given
76 // |uuid|. 73 // |uuid|.
77 const BluetoothServiceRecordWin* GetServiceRecord( 74 const BluetoothServiceRecordWin* GetServiceRecord(
78 const device::BluetoothUUID& uuid) const; 75 const device::BluetoothUUID& uuid) const;
79 76
80 // Returns true if all fields and services of this instance are equal to the 77 // Returns true if all fields and services of this instance are equal to the
81 // fields and services stored in |device_state|. 78 // fields and services stored in |device_state|.
82 bool IsEqual(const BluetoothTaskManagerWin::DeviceState& device_state); 79 bool IsEqual(const BluetoothTaskManagerWin::DeviceState& device_state);
83 80
84 // Updates this instance with all fields and properties stored in 81 // Updates this instance with all fields and properties stored in
85 // |device_state|. 82 // |device_state|.
86 void Update(const BluetoothTaskManagerWin::DeviceState& device_state); 83 void Update(const BluetoothTaskManagerWin::DeviceState& device_state);
87 84
88 protected: 85 protected:
89 // BluetoothDevice override 86 // BluetoothDevice override
90 virtual std::string GetDeviceName() const override; 87 std::string GetDeviceName() const override;
91 88
92 private: 89 private:
93 friend class BluetoothAdapterWin; 90 friend class BluetoothAdapterWin;
94 91
95 typedef ScopedVector<BluetoothServiceRecordWin> ServiceRecordList; 92 typedef ScopedVector<BluetoothServiceRecordWin> ServiceRecordList;
96 93
97 // Used by BluetoothAdapterWin to update the visible state during 94 // Used by BluetoothAdapterWin to update the visible state during
98 // discovery. 95 // discovery.
99 void SetVisible(bool visible); 96 void SetVisible(bool visible);
100 97
(...skipping 29 matching lines...) Expand all
130 127
131 // The service records retrieved from SDP. 128 // The service records retrieved from SDP.
132 ServiceRecordList service_record_list_; 129 ServiceRecordList service_record_list_;
133 130
134 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceWin); 131 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceWin);
135 }; 132 };
136 133
137 } // namespace device 134 } // namespace device
138 135
139 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ 136 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_adapter_win_unittest.cc ('k') | device/bluetooth/bluetooth_socket_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698