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

Unified Diff: chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.h

Issue 475483003: Wire easy unlock settings UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 38028613422781df4e2bf4e7a65599df28744835..215b46973555e7626535e7153dfc7e6bc12157ed 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"
@@ -180,6 +181,82 @@ class EasyUnlockPrivateUpdateScreenlockStateFunction
DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateUpdateScreenlockStateFunction);
};
+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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698