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

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: reland 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 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
« no previous file with comments | « chrome/browser/chromeos/extensions/bluetooth_event_router.cc ('k') | chrome/browser/extensions/api/bluetooth/bluetooth_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698