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

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

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

Powered by Google App Engine
This is Rietveld 408576698