| Index: chrome/browser/extensions/api/bluetooth/bluetooth_api.h
|
| diff --git a/chrome/browser/extensions/api/bluetooth/bluetooth_api.h b/chrome/browser/extensions/api/bluetooth/bluetooth_api.h
|
| index 8e21412c9f196a339e489dd879bae07b19f2cb0f..25e744bea272daff7ed8a0289544427980b78cd5 100644
|
| --- a/chrome/browser/extensions/api/bluetooth/bluetooth_api.h
|
| +++ b/chrome/browser/extensions/api/bluetooth/bluetooth_api.h
|
| @@ -190,6 +190,40 @@ class BluetoothGetLocalOutOfBandPairingDataFunction
|
| virtual bool RunImpl() OVERRIDE;
|
| };
|
|
|
| +class BluetoothStartDiscoveryFunction : public AsyncExtensionFunction {
|
| + public:
|
| + DECLARE_EXTENSION_FUNCTION_NAME("experimental.bluetooth.startDiscovery")
|
| +
|
| + protected:
|
| + virtual ~BluetoothStartDiscoveryFunction() {}
|
| +
|
| + // ExtensionFunction:
|
| + virtual bool RunImpl() OVERRIDE;
|
| +
|
| +#if defined(OS_CHROMEOS)
|
| + private:
|
| + void OnSuccessCallback();
|
| + void OnErrorCallback();
|
| +#endif
|
| +};
|
| +
|
| +class BluetoothStopDiscoveryFunction : public AsyncExtensionFunction {
|
| + public:
|
| + DECLARE_EXTENSION_FUNCTION_NAME("experimental.bluetooth.stopDiscovery")
|
| +
|
| + protected:
|
| + virtual ~BluetoothStopDiscoveryFunction() {}
|
| +
|
| + // ExtensionFunction:
|
| + virtual bool RunImpl() OVERRIDE;
|
| +
|
| +#if defined(OS_CHROMEOS)
|
| + private:
|
| + void OnSuccessCallback();
|
| + void OnErrorCallback();
|
| +#endif
|
| +};
|
| +
|
| } // namespace api
|
| } // namespace extensions
|
|
|
|
|