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

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

Issue 10007008: Add support for creating bluetooth RFCOMM sockets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: adding disconnect Created 8 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 ebad5b56c31f235108282a53a5aafe2ca4aead8e..98329eff9a2c97c40d2548b54348bd37dc5a509c 100644
--- a/chrome/browser/extensions/api/bluetooth/bluetooth_api.h
+++ b/chrome/browser/extensions/api/bluetooth/bluetooth_api.h
@@ -21,7 +21,8 @@ class BluetoothExtensionFunction : public SyncExtensionFunction {
protected:
#if defined(OS_CHROMEOS)
- const chromeos::BluetoothAdapter* adapter_;
+ const chromeos::BluetoothAdapter* const_adapter_;
+ chromeos::BluetoothAdapter* adapter_;
#endif
};
@@ -51,6 +52,12 @@ class BluetoothGetDevicesWithServiceFunction
"experimental.bluetooth.getDevicesWithService")
};
+class BluetoothConnectFunction : public BluetoothExtensionFunction {
+ public:
+ virtual bool RunImpl() OVERRIDE;
+ DECLARE_EXTENSION_FUNCTION_NAME("experimental.bluetooth.connect")
+};
+
class BluetoothDisconnectFunction : public BluetoothExtensionFunction {
public:
virtual bool RunImpl() OVERRIDE;
@@ -85,12 +92,6 @@ class BluetoothWriteFunction : public BluetoothExtensionFunction {
DECLARE_EXTENSION_FUNCTION_NAME("experimental.bluetooth.write")
};
-class BluetoothConnectFunction : public BluetoothExtensionFunction {
- public:
- virtual bool RunImpl() OVERRIDE;
- DECLARE_EXTENSION_FUNCTION_NAME("experimental.bluetooth.connect")
-};
-
} // namespace api
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698