| 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 669873aa5c8fbf7cdb3f90f06a4e0d5582f38eab..4abe159d52403918f4f7a7d46eeb39b41e63e66d 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
|
|
|
|
|