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

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

Issue 14487002: Bluetooth: Profile support for Chrome OS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Transfer out ownership of fd. Fix socket code Created 7 years, 8 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 525fdfee218317f06e18c914df1443b23f5ac3df..5e39f8f70d717b2760a62418776b12778091912e 100644
--- a/chrome/browser/extensions/api/bluetooth/bluetooth_api.h
+++ b/chrome/browser/extensions/api/bluetooth/bluetooth_api.h
@@ -60,20 +60,26 @@ class BluetoothAddProfileFunction : public AsyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("bluetooth.addProfile", BLUETOOTH_ADDPROFILE)
- virtual bool RunImpl() OVERRIDE;
+ BluetoothAddProfileFunction();
protected:
virtual ~BluetoothAddProfileFunction() {}
+ virtual bool RunImpl() OVERRIDE;
+
+ private:
+ void OnProfileRegistered(device::BluetoothProfile* bluetooth_profile);
+
+ std::string uuid_;
};
-class BluetoothRemoveProfileFunction : public AsyncExtensionFunction {
+class BluetoothRemoveProfileFunction : public SyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("bluetooth.removeProfile",
BLUETOOTH_REMOVEPROFILE)
- virtual bool RunImpl() OVERRIDE;
protected:
virtual ~BluetoothRemoveProfileFunction() {}
+ virtual bool RunImpl() OVERRIDE;
};
class BluetoothGetProfilesFunction : public BluetoothExtensionFunction {

Powered by Google App Engine
This is Rietveld 408576698