| 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 deac340343d7ad47f7c3df9c056c8493acce6487..ec8d497bb7e716e5b965dc2480df37ec3d226a91 100644
|
| --- a/chrome/browser/extensions/api/bluetooth/bluetooth_api.h
|
| +++ b/chrome/browser/extensions/api/bluetooth/bluetooth_api.h
|
| @@ -191,6 +191,40 @@ class BluetoothGetOutOfBandPairingDataFunction
|
| 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
|
|
|
|
|