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

Side by Side Diff: chrome/common/extensions/extension_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: Created 8 years, 6 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_EXTENSION_PERMISSION_SET_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 303
304 // Creates a new permission set based on the |extension| manifest data, and 304 // Creates a new permission set based on the |extension| manifest data, and
305 // the api and host permissions (|apis| and |hosts|). The effective hosts 305 // the api and host permissions (|apis| and |hosts|). The effective hosts
306 // of the newly created permission set will be inferred from the |extension| 306 // of the newly created permission set will be inferred from the |extension|
307 // manifest, |apis| and |hosts|. 307 // manifest, |apis| and |hosts|.
308 ExtensionPermissionSet(const extensions::Extension* extension, 308 ExtensionPermissionSet(const extensions::Extension* extension,
309 const ExtensionAPIPermissionSet& apis, 309 const ExtensionAPIPermissionSet& apis,
310 const URLPatternSet& explicit_hosts, 310 const URLPatternSet& explicit_hosts,
311 const ExtensionOAuth2Scopes& scopes); 311 const ExtensionOAuth2Scopes& scopes);
312 312
313
314 // Creates a new permission set based on the specified data. 313 // Creates a new permission set based on the specified data.
315 ExtensionPermissionSet(const ExtensionAPIPermissionSet& apis, 314 ExtensionPermissionSet(const ExtensionAPIPermissionSet& apis,
316 const URLPatternSet& explicit_hosts, 315 const URLPatternSet& explicit_hosts,
317 const URLPatternSet& scriptable_hosts); 316 const URLPatternSet& scriptable_hosts);
318 317
319 // Creates a new permission set that has oauth scopes in it. 318 // Creates a new permission set that has oauth scopes in it.
320 ExtensionPermissionSet(const ExtensionAPIPermissionSet& apis, 319 ExtensionPermissionSet(const ExtensionAPIPermissionSet& apis,
321 const URLPatternSet& explicit_hosts, 320 const URLPatternSet& explicit_hosts,
322 const URLPatternSet& scriptable_hosts, 321 const URLPatternSet& scriptable_hosts,
323 const ExtensionOAuth2Scopes& scopes); 322 const ExtensionOAuth2Scopes& scopes);
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 462
464 // The list of hosts this effectively grants access to. 463 // The list of hosts this effectively grants access to.
465 URLPatternSet effective_hosts_; 464 URLPatternSet effective_hosts_;
466 465
467 // A set of oauth2 scopes that are used by the identity API to create OAuth2 466 // A set of oauth2 scopes that are used by the identity API to create OAuth2
468 // tokens for accessing the Google Account of the signed-in sync account. 467 // tokens for accessing the Google Account of the signed-in sync account.
469 ExtensionOAuth2Scopes scopes_; 468 ExtensionOAuth2Scopes scopes_;
470 }; 469 };
471 470
472 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_ 471 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_PERMISSION_SET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698