BluetoothSocketAsyncApiFunction();
protected:
- virtual ~BluetoothSocketAsyncApiFunction();
+ ~BluetoothSocketAsyncApiFunction() override;
// AsyncExtensionFunction:
- virtual bool RunAsync() OVERRIDE;
+ bool RunAsync() override;
bool PrePrepare();
bool Respond();
BluetoothSocketCreateFunction();
protected:
- virtual ~BluetoothSocketCreateFunction();
+ ~BluetoothSocketCreateFunction() override;
// BluetoothSocketAsyncApiFunction:
- virtual bool Prepare() OVERRIDE;
- virtual void Work() OVERRIDE;
+ bool Prepare() override;
+ void Work() override;
private:
scoped_ptr<bluetooth_socket::Create::Params> params_;
BluetoothSocketUpdateFunction();
protected:
- virtual ~BluetoothSocketUpdateFunction();
+ ~BluetoothSocketUpdateFunction() override;
// BluetoothSocketAsyncApiFunction:
- virtual bool Prepare() OVERRIDE;
- virtual void Work() OVERRIDE;
+ bool Prepare() override;
+ void Work() override;
private:
scoped_ptr<bluetooth_socket::Update::Params> params_;
BluetoothSocketSetPausedFunction();
protected:
- virtual ~BluetoothSocketSetPausedFunction();
+ ~BluetoothSocketSetPausedFunction() override;
// BluetoothSocketAsyncApiFunction:
- virtual bool Prepare() OVERRIDE;
- virtual void Work() OVERRIDE;
+ bool Prepare() override;
+ void Work() override;
private:
scoped_ptr<bluetooth_socket::SetPaused::Params> params_;
virtual const std::string& uuid() const = 0;
// BluetoothSocketAsyncApiFunction:
- virtual bool Prepare() OVERRIDE;
- virtual void AsyncWorkStart() OVERRIDE;
+ bool Prepare() override;
+ void AsyncWorkStart() override;
protected:
- virtual ~BluetoothSocketListenFunction();
+ ~BluetoothSocketListenFunction() override;
virtual void OnGetAdapter(scoped_refptr<device::BluetoothAdapter> adapter);
virtual void OnCreateService(scoped_refptr<device::BluetoothSocket> socket);
BluetoothSocketListenUsingRfcommFunction();
// BluetoothSocketListenFunction:
- virtual int socket_id() const OVERRIDE;
- virtual const std::string& uuid() const OVERRIDE;
+ int socket_id() const override;
+ const std::string& uuid() const override;
- virtual bool CreateParams() OVERRIDE;
- virtual void CreateService(
+ bool CreateParams() override;
+ void CreateService(
scoped_refptr<device::BluetoothAdapter> adapter,
const device::BluetoothUUID& uuid,
scoped_ptr<std::string> name,
const device::BluetoothAdapter::CreateServiceCallback& callback,
const device::BluetoothAdapter::CreateServiceErrorCallback&
- error_callback) OVERRIDE;
- virtual void CreateResults() OVERRIDE;
+ error_callback) override;
+ void CreateResults() override;
protected:
- virtual ~BluetoothSocketListenUsingRfcommFunction();
+ ~BluetoothSocketListenUsingRfcommFunction() override;
private:
scoped_ptr<bluetooth_socket::ListenUsingRfcomm::Params> params_;
BluetoothSocketListenUsingL2capFunction();
// BluetoothSocketListenFunction:
- virtual int socket_id() const OVERRIDE;
- virtual const std::string& uuid() const OVERRIDE;
+ int socket_id() const override;
+ const std::string& uuid() const override;
- virtual bool CreateParams() OVERRIDE;
- virtual void CreateService(
+ bool CreateParams() override;
+ void CreateService(
scoped_refptr<device::BluetoothAdapter> adapter,
const device::BluetoothUUID& uuid,
scoped_ptr<std::string> name,
const device::BluetoothAdapter::CreateServiceCallback& callback,
const device::BluetoothAdapter::CreateServiceErrorCallback&
- error_callback) OVERRIDE;
- virtual void CreateResults() OVERRIDE;
+ error_callback) override;
+ void CreateResults() override;
protected:
- virtual ~BluetoothSocketListenUsingL2capFunction();
+ ~BluetoothSocketListenUsingL2capFunction() override;
private:
scoped_ptr<bluetooth_socket::ListenUsingL2cap::Params> params_;
BluetoothSocketAbstractConnectFunction();
protected:
- virtual ~BluetoothSocketAbstractConnectFunction();
+ ~BluetoothSocketAbstractConnectFunction() override;
// BluetoothSocketAsyncApiFunction:
- virtual bool Prepare() OVERRIDE;
- virtual void AsyncWorkStart() OVERRIDE;
+ bool Prepare() override;
+ void AsyncWorkStart() override;
// Subclasses should implement this method to connect to the service
// registered with |uuid| on the |device|.
BluetoothSocketConnectFunction();
protected:
- virtual ~BluetoothSocketConnectFunction();
+ ~BluetoothSocketConnectFunction() override;
// BluetoothSocketAbstractConnectFunction:
- virtual void ConnectToService(device::BluetoothDevice* device,
- const device::BluetoothUUID& uuid) OVERRIDE;
+ void ConnectToService(device::BluetoothDevice* device,
+ const device::BluetoothUUID& uuid) override;
};
class BluetoothSocketDisconnectFunction
BluetoothSocketDisconnectFunction();
protected:
- virtual ~BluetoothSocketDisconnectFunction();
+ ~BluetoothSocketDisconnectFunction() override;
// BluetoothSocketAsyncApiFunction:
- virtual bool Prepare() OVERRIDE;
- virtual void AsyncWorkStart() OVERRIDE;
+ bool Prepare() override;
+ void AsyncWorkStart() override;
private:
virtual void OnSuccess();
BluetoothSocketCloseFunction();
protected:
- virtual ~BluetoothSocketCloseFunction();
+ ~BluetoothSocketCloseFunction() override;
// BluetoothSocketAsyncApiFunction:
- virtual bool Prepare() OVERRIDE;
- virtual void Work() OVERRIDE;
+ bool Prepare() override;
+ void Work() override;
private:
scoped_ptr<bluetooth_socket::Close::Params> params_;
BluetoothSocketSendFunction();
protected:
- virtual ~BluetoothSocketSendFunction();
+ ~BluetoothSocketSendFunction() override;
// BluetoothSocketAsyncApiFunction:
- virtual bool Prepare() OVERRIDE;
- virtual void AsyncWorkStart() OVERRIDE;
+ bool Prepare() override;
+ void AsyncWorkStart() override;
private:
void OnSuccess(int bytes_sent);
BluetoothSocketGetInfoFunction();
protected:
- virtual ~BluetoothSocketGetInfoFunction();
+ ~BluetoothSocketGetInfoFunction() override;
// BluetoothSocketAsyncApiFunction:
- virtual bool Prepare() OVERRIDE;
- virtual void Work() OVERRIDE;
+ bool Prepare() override;
+ void Work() override;
private:
scoped_ptr<bluetooth_socket::GetInfo::Params> params_;
BluetoothSocketGetSocketsFunction();
protected:
- virtual ~BluetoothSocketGetSocketsFunction();
+ ~BluetoothSocketGetSocketsFunction() override;
// BluetoothSocketAsyncApiFunction:
- virtual bool Prepare() OVERRIDE;
- virtual void Work() OVERRIDE;
+ bool Prepare() override;
+ void Work() override;
};
} // namespace core_api