static BrowserContextKeyedAPIFactory<BluetoothAPI>* GetFactoryInstance();
explicit BluetoothAPI(content::BrowserContext* context);
- virtual ~BluetoothAPI();
+ ~BluetoothAPI() override;
BluetoothEventRouter* event_router();
// KeyedService implementation.
- virtual void Shutdown() OVERRIDE;
+ void Shutdown() override;
// EventRouter::Observer implementation.
- virtual void OnListenerAdded(const EventListenerInfo& details) OVERRIDE;
- virtual void OnListenerRemoved(const EventListenerInfo& details) OVERRIDE;
+ void OnListenerAdded(const EventListenerInfo& details) override;
+ void OnListenerRemoved(const EventListenerInfo& details) override;
private:
// BrowserContextKeyedAPI implementation.
BLUETOOTH_GETADAPTERSTATE)
protected:
- virtual ~BluetoothGetAdapterStateFunction();
+ ~BluetoothGetAdapterStateFunction() override;
// BluetoothExtensionFunction:
- virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE;
+ bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) override;
};
class BluetoothGetDevicesFunction : public BluetoothExtensionFunction {
DECLARE_EXTENSION_FUNCTION("bluetooth.getDevices", BLUETOOTH_GETDEVICES)
protected:
- virtual ~BluetoothGetDevicesFunction();
+ ~BluetoothGetDevicesFunction() override;
// BluetoothExtensionFunction:
- virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE;
+ bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) override;
};
class BluetoothGetDeviceFunction : public BluetoothExtensionFunction {
DECLARE_EXTENSION_FUNCTION("bluetooth.getDevice", BLUETOOTH_GETDEVICE)
// BluetoothExtensionFunction:
- virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE;
+ bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) override;
protected:
- virtual ~BluetoothGetDeviceFunction();
+ ~BluetoothGetDeviceFunction() override;
};
class BluetoothStartDiscoveryFunction : public BluetoothExtensionFunction {
BLUETOOTH_STARTDISCOVERY)
protected:
- virtual ~BluetoothStartDiscoveryFunction() {}
+ ~BluetoothStartDiscoveryFunction() override {}
// BluetoothExtensionFunction:
- virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE;
+ bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) override;
private:
void OnSuccessCallback();
DECLARE_EXTENSION_FUNCTION("bluetooth.stopDiscovery", BLUETOOTH_STOPDISCOVERY)
protected:
- virtual ~BluetoothStopDiscoveryFunction() {}
+ ~BluetoothStopDiscoveryFunction() override {}
// BluetoothExtensionFunction:
- virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE;
+ bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) override;
private:
void OnSuccessCallback();