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

Unified Diff: chrome/browser/extensions/api/bluetooth/bluetooth_api.h

Issue 10536159: Bluetooth Extension API: Add a discovery API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 8 years, 6 months 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: 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

Powered by Google App Engine
This is Rietveld 408576698