Index: chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.h |
diff --git a/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.h b/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.h |
index 215b46973555e7626535e7153dfc7e6bc12157ed..e325ff6f7ac8e93c8545aa6486df66cb6805b000 100644 |
--- a/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.h |
+++ b/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.h |
@@ -9,6 +9,7 @@ |
#include "base/basictypes.h" |
#include "base/memory/scoped_ptr.h" |
+#include "chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_api.h" |
#include "extensions/browser/browser_context_keyed_api_factory.h" |
#include "extensions/browser/extension_function.h" |
@@ -164,6 +165,25 @@ class EasyUnlockPrivateSeekBluetoothDeviceByAddressFunction |
EasyUnlockPrivateSeekBluetoothDeviceByAddressFunction); |
}; |
+class EasyUnlockPrivateConnectToBluetoothServiceInsecurelyFunction |
+ : public BluetoothSocketAbstractConnectFunction { |
+ public: |
+ DECLARE_EXTENSION_FUNCTION( |
+ "easyUnlockPrivate.connectToBluetoothServiceInsecurely", |
+ EASYUNLOCKPRIVATE_CONNECTTOBLUETOOTHSERVICEINSECURELY) |
+ EasyUnlockPrivateConnectToBluetoothServiceInsecurelyFunction(); |
+ |
+ private: |
+ virtual ~EasyUnlockPrivateConnectToBluetoothServiceInsecurelyFunction(); |
+ |
+ // BluetoothSocketAbstractConnectFunction: |
+ virtual void ConnectToService(device::BluetoothDevice* device, |
+ const device::BluetoothUUID& uuid) OVERRIDE; |
+ |
+ DISALLOW_COPY_AND_ASSIGN( |
+ EasyUnlockPrivateConnectToBluetoothServiceInsecurelyFunction); |
+}; |
+ |
class EasyUnlockPrivateUpdateScreenlockStateFunction |
: public SyncExtensionFunction { |
public: |