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

Side by Side Diff: chrome/common/extensions/api/identity.idl

Issue 784283006: chrome.identity API: Restrict gaia ID access (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reuse identity.email, kill identity.gaiaId Created 5 years, 11 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/extensions/api/identity/identity_apitest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Use the <code>chrome.identity</code> API to get OAuth2 access tokens. 5 // Use the <code>chrome.identity</code> API to get OAuth2 access tokens.
6 namespace identity { 6 namespace identity {
7 7
8 dictionary AccountInfo { 8 dictionary AccountInfo {
9 // A unique identifier for the account. This ID will not change 9 // A unique identifier for the account. This ID will not change
10 // for the lifetime of the account. 10 // for the lifetime of the account.
11 DOMString id; 11 DOMString id;
12 }; 12 };
13 13
14 dictionary ProfileUserInfo { 14 dictionary ProfileUserInfo {
15 // An email address for the user account signed into the current 15 // An email address for the user account signed into the current
16 // profile. Empty if the user is not signed in. 16 // profile. Empty if the user is not signed in or the
17 // <code>identity.email</code> manifest permission is not
18 // specified.
17 DOMString email; 19 DOMString email;
18 20
19 // A unique identifier for the account. This ID will not change 21 // A unique identifier for the account. This ID will not change
20 // for the lifetime of the account. Empty if the user is not 22 // for the lifetime of the account. Empty if the user is not
21 // signed in. 23 // signed in or (in M41+) the <code>identity.email</code>
24 // manifest permission is not specified.
22 DOMString id; 25 DOMString id;
23 }; 26 };
24 27
25 dictionary TokenDetails { 28 dictionary TokenDetails {
26 // Fetching a token may require the user to sign-in to Chrome, or 29 // Fetching a token may require the user to sign-in to Chrome, or
27 // approve the application's requested scopes. If the interactive 30 // approve the application's requested scopes. If the interactive
28 // flag is <code>true</code>, <code>getAuthToken</code> will 31 // flag is <code>true</code>, <code>getAuthToken</code> will
29 // prompt the user as necessary. When the flag is 32 // prompt the user as necessary. When the flag is
30 // <code>false</code> or omitted, <code>getAuthToken</code> will 33 // <code>false</code> or omitted, <code>getAuthToken</code> will
31 // return failure any time a prompt would be required. 34 // return failure any time a prompt would be required.
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 // 155 //
153 // |path| : The path appended to the end of the generated URL. 156 // |path| : The path appended to the end of the generated URL.
154 [nocompile] static DOMString getRedirectURL(optional DOMString path); 157 [nocompile] static DOMString getRedirectURL(optional DOMString path);
155 }; 158 };
156 159
157 interface Events { 160 interface Events {
158 // Fired when signin state changes for an account on the user's profile. 161 // Fired when signin state changes for an account on the user's profile.
159 static void onSignInChanged(AccountInfo account, boolean signedIn); 162 static void onSignInChanged(AccountInfo account, boolean signedIn);
160 }; 163 };
161 }; 164 };
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/identity/identity_apitest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698