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

Side by Side Diff: chrome/common/extensions/permissions/permission_set.h

Issue 10630021: Modify experimental identity flow to display scope descriptions and details. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_SET_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_SET_H_
6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_SET_H_ 6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_SET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 25 matching lines...) Expand all
36 36
37 // Creates a new permission set based on the |extension| manifest data, and 37 // Creates a new permission set based on the |extension| manifest data, and
38 // the api and host permissions (|apis| and |hosts|). The effective hosts 38 // the api and host permissions (|apis| and |hosts|). The effective hosts
39 // of the newly created permission set will be inferred from the |extension| 39 // of the newly created permission set will be inferred from the |extension|
40 // manifest, |apis| and |hosts|. 40 // manifest, |apis| and |hosts|.
41 PermissionSet(const extensions::Extension* extension, 41 PermissionSet(const extensions::Extension* extension,
42 const APIPermissionSet& apis, 42 const APIPermissionSet& apis,
43 const URLPatternSet& explicit_hosts, 43 const URLPatternSet& explicit_hosts,
44 const OAuth2Scopes& scopes); 44 const OAuth2Scopes& scopes);
45 45
46
47 // Creates a new permission set based on the specified data. 46 // Creates a new permission set based on the specified data.
48 PermissionSet(const APIPermissionSet& apis, 47 PermissionSet(const APIPermissionSet& apis,
49 const URLPatternSet& explicit_hosts, 48 const URLPatternSet& explicit_hosts,
50 const URLPatternSet& scriptable_hosts); 49 const URLPatternSet& scriptable_hosts);
51 50
52 // Creates a new permission set that has oauth scopes in it. 51 // Creates a new permission set that has oauth scopes in it.
53 PermissionSet(const APIPermissionSet& apis, 52 PermissionSet(const APIPermissionSet& apis,
54 const URLPatternSet& explicit_hosts, 53 const URLPatternSet& explicit_hosts,
55 const URLPatternSet& scriptable_hosts, 54 const URLPatternSet& scriptable_hosts,
56 const OAuth2Scopes& scopes); 55 const OAuth2Scopes& scopes);
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 URLPatternSet effective_hosts_; 195 URLPatternSet effective_hosts_;
197 196
198 // A set of oauth2 scopes that are used by the identity API to create OAuth2 197 // A set of oauth2 scopes that are used by the identity API to create OAuth2
199 // tokens for accessing the Google Account of the signed-in sync account. 198 // tokens for accessing the Google Account of the signed-in sync account.
200 OAuth2Scopes scopes_; 199 OAuth2Scopes scopes_;
201 }; 200 };
202 201
203 } // namespace extensions 202 } // namespace extensions
204 203
205 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_SET_H_ 204 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_SET_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_permission_set.h ('k') | chrome/common/net/gaia/oauth2_mint_token_flow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698