| 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 de47c5eac6afaa21f20aebb465e9df240b6559c0..567148de10f8306287386bf81f16ed59221a5243 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
|
| @@ -8,6 +8,7 @@
|
| #include <string>
|
|
|
| #include "base/basictypes.h"
|
| +#include "base/memory/scoped_ptr.h"
|
| #include "extensions/browser/browser_context_keyed_api_factory.h"
|
| #include "extensions/browser/extension_function.h"
|
|
|
| @@ -34,6 +35,8 @@ class EasyUnlockPrivateAPI : public BrowserContextKeyedAPI {
|
| explicit EasyUnlockPrivateAPI(content::BrowserContext* context);
|
| virtual ~EasyUnlockPrivateAPI();
|
|
|
| + void SendTurnOffFlowFinished();
|
| +
|
| EasyUnlockPrivateCryptoDelegate* crypto_delegate() {
|
| return crypto_delegate_.get();
|
| }
|
| @@ -44,6 +47,7 @@ class EasyUnlockPrivateAPI : public BrowserContextKeyedAPI {
|
| // BrowserContextKeyedAPI implementation.
|
| static const char* service_name() { return "EasyUnlockPrivate"; }
|
|
|
| + content::BrowserContext* browser_context_;
|
| scoped_ptr<EasyUnlockPrivateCryptoDelegate> crypto_delegate_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateAPI);
|
| @@ -155,6 +159,82 @@ class EasyUnlockPrivateSeekBluetoothDeviceByAddressFunction
|
| EasyUnlockPrivateSeekBluetoothDeviceByAddressFunction);
|
| };
|
|
|
| +class EasyUnlockPrivateSetPermitAccessFunction : public SyncExtensionFunction {
|
| + public:
|
| + DECLARE_EXTENSION_FUNCTION("easyUnlockPrivate.setPermitAccess",
|
| + EASYUNLOCKPRIVATE_SETPERMITACCESS)
|
| + EasyUnlockPrivateSetPermitAccessFunction();
|
| +
|
| + private:
|
| + virtual ~EasyUnlockPrivateSetPermitAccessFunction();
|
| +
|
| + // SyncExtensionFunction:
|
| + virtual bool RunSync() OVERRIDE;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateSetPermitAccessFunction);
|
| +};
|
| +
|
| +class EasyUnlockPrivateGetPermitAccessFunction : public SyncExtensionFunction {
|
| + public:
|
| + DECLARE_EXTENSION_FUNCTION("easyUnlockPrivate.getPermitAccess",
|
| + EASYUNLOCKPRIVATE_GETPERMITACCESS)
|
| + EasyUnlockPrivateGetPermitAccessFunction();
|
| +
|
| + private:
|
| + virtual ~EasyUnlockPrivateGetPermitAccessFunction();
|
| +
|
| + // SyncExtensionFunction:
|
| + virtual bool RunSync() OVERRIDE;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateGetPermitAccessFunction);
|
| +};
|
| +
|
| +class EasyUnlockPrivateClearPermitAccessFunction
|
| + : public SyncExtensionFunction {
|
| + public:
|
| + DECLARE_EXTENSION_FUNCTION("easyUnlockPrivate.clearPermitAccess",
|
| + EASYUNLOCKPRIVATE_CLEARPERMITACCESS)
|
| + EasyUnlockPrivateClearPermitAccessFunction();
|
| +
|
| + private:
|
| + virtual ~EasyUnlockPrivateClearPermitAccessFunction();
|
| +
|
| + // SyncExtensionFunction:
|
| + virtual bool RunSync() OVERRIDE;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateClearPermitAccessFunction);
|
| +};
|
| +
|
| +class EasyUnlockPrivateSetRemoteDevicesFunction : public SyncExtensionFunction {
|
| + public:
|
| + DECLARE_EXTENSION_FUNCTION("easyUnlockPrivate.setRemoteDevices",
|
| + EASYUNLOCKPRIVATE_SETREMOTEDEVICES)
|
| + EasyUnlockPrivateSetRemoteDevicesFunction();
|
| +
|
| + private:
|
| + virtual ~EasyUnlockPrivateSetRemoteDevicesFunction();
|
| +
|
| + // SyncExtensionFunction:
|
| + virtual bool RunSync() OVERRIDE;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateSetRemoteDevicesFunction);
|
| +};
|
| +
|
| +class EasyUnlockPrivateGetRemoteDevicesFunction : public SyncExtensionFunction {
|
| + public:
|
| + DECLARE_EXTENSION_FUNCTION("easyUnlockPrivate.getRemoteDevices",
|
| + EASYUNLOCKPRIVATE_GETREMOTEDEVICES)
|
| + EasyUnlockPrivateGetRemoteDevicesFunction();
|
| +
|
| + private:
|
| + virtual ~EasyUnlockPrivateGetRemoteDevicesFunction();
|
| +
|
| + // SyncExtensionFunction:
|
| + virtual bool RunSync() OVERRIDE;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateGetRemoteDevicesFunction);
|
| +};
|
| +
|
| } // namespace api
|
| } // namespace extensions
|
|
|
|
|