Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2704)

Unified Diff: extensions/browser/api/bluetooth/bluetooth_private_api.h

Issue 819713002: bluetoothPrivate: Add disconnectAll function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ran update_extension_functions.py Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: extensions/browser/api/bluetooth/bluetooth_private_api.h
diff --git a/extensions/browser/api/bluetooth/bluetooth_private_api.h b/extensions/browser/api/bluetooth/bluetooth_private_api.h
index 68c4a991cfec2d4192f15705736ecd57b52998d2..583d1ab8c894478a23f9154ed85ae58e69262b2f 100644
--- a/extensions/browser/api/bluetooth/bluetooth_private_api.h
+++ b/extensions/browser/api/bluetooth/bluetooth_private_api.h
@@ -90,6 +90,24 @@ class BluetoothPrivateSetPairingResponseFunction
DISALLOW_COPY_AND_ASSIGN(BluetoothPrivateSetPairingResponseFunction);
};
+class BluetoothPrivateDisconnectFunction : public BluetoothExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("bluetoothPrivate.disconnect",
+ BLUETOOTHPRIVATE_DISCONNECT);
+ BluetoothPrivateDisconnectFunction();
+
+ // BluetoothExtensionFunction overrides:
+ bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) override;
+
+ private:
+ ~BluetoothPrivateDisconnectFunction() override;
+
+ void OnSuccessCallback();
+ void OnErrorCallback();
+
+ DISALLOW_COPY_AND_ASSIGN(BluetoothPrivateDisconnectFunction);
+};
+
} // namespace core_api
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698