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

Unified Diff: extensions/shell/common/api/identity.idl

Issue 804673002: app_shell: Extend identity API stub (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@unlimited-storage
Patch Set: (identity-stub) rebase Created 6 years 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 | « extensions/shell/browser/api/identity/identity_api_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/shell/common/api/identity.idl
diff --git a/extensions/shell/common/api/identity.idl b/extensions/shell/common/api/identity.idl
index a77509a9e4512eb0d11b279bbe14758b88bbe7f2..f5e681e9b6f8d49a9b1122cc74768b4cd4cab27f 100644
--- a/extensions/shell/common/api/identity.idl
+++ b/extensions/shell/common/api/identity.idl
@@ -10,14 +10,31 @@ namespace identity {
boolean? interactive;
};
+ dictionary InvalidTokenDetails {
+ // Ignored parameter. Exists only for compatibility.
+ DOMString? token;
+ };
+
// Called with the OAuth2 access token on success or undefined on error.
callback GetAuthTokenCallback = void (optional DOMString token);
+
+ // Called by removeCachedAuthToken().
+ callback InvalidateAuthTokenCallback = void ();
interface Functions {
// Returns an OAuth2 access token for the current app_shell user for scopes
// from the manifest. Does not prompt the user.
static void getAuthToken(GetAuthTokenDetails options,
GetAuthTokenCallback callback);
+
+ // Stub. Calls callback immediately because app_shell does not cache access
+ // tokens the way Chrome does.
+ static void removeCachedAuthToken(InvalidTokenDetails details,
+ InvalidateAuthTokenCallback callback);
};
+ interface Events {
+ // Stub. Never fired because app_shell only supports a single user account.
+ static void onSignInChanged(object account, boolean signedIn);
+ };
};
« no previous file with comments | « extensions/shell/browser/api/identity/identity_api_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698