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

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

Issue 552893002: Introduce new chrome.easyUnlock APIs for getting the sign-in challenge and using it to sign-in the … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update docs Created 6 years, 3 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 f80f85bd3f5d6c2a085d51578ce88cf939c37600..53c8d421f75d8c2ee76b3aab2249dd37c1315c49 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
@@ -277,6 +277,38 @@ class EasyUnlockPrivateGetRemoteDevicesFunction : public SyncExtensionFunction {
DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateGetRemoteDevicesFunction);
};
+class EasyUnlockPrivateGetSignInChallengeFunction :
+ public AsyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("easyUnlockPrivate.getSignInChallenge",
+ EASYUNLOCKPRIVATE_GETSIGNINCHALLENGE)
+ EasyUnlockPrivateGetSignInChallengeFunction();
+
+ private:
+ virtual ~EasyUnlockPrivateGetSignInChallengeFunction();
+
+ // AsyncExtensionFunction:
+ virtual bool RunAsync() OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateGetSignInChallengeFunction);
+};
+
+class EasyUnlockPrivateTrySignInSecretFunction :
+ public AsyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("easyUnlockPrivate.trySignInSecret",
+ EASYUNLOCKPRIVATE_TRYSIGNINSECRET)
+ EasyUnlockPrivateTrySignInSecretFunction();
+
+ private:
+ virtual ~EasyUnlockPrivateTrySignInSecretFunction();
+
+ // AsyncExtensionFunction:
+ virtual bool RunAsync() OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateTrySignInSecretFunction);
+};
+
} // 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