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

Side by Side Diff: extensions/common/extension.h

Issue 1349613003: [Extensions] Un-refcount PermissionSet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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 unified diff | Download patch
« no previous file with comments | « extensions/browser/extension_prefs.cc ('k') | extensions/common/extension.cc » ('j') | 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 #ifndef EXTENSIONS_COMMON_EXTENSION_H_ 5 #ifndef EXTENSIONS_COMMON_EXTENSION_H_
6 #define EXTENSIONS_COMMON_EXTENSION_H_ 6 #define EXTENSIONS_COMMON_EXTENSION_H_
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <iosfwd> 9 #include <iosfwd>
10 #include <map> 10 #include <map>
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 }; 567 };
568 568
569 Reason reason; 569 Reason reason;
570 570
571 // The extension who's permissions have changed. 571 // The extension who's permissions have changed.
572 const Extension* extension; 572 const Extension* extension;
573 573
574 // The permissions that have changed. For Reason::ADDED, this would contain 574 // The permissions that have changed. For Reason::ADDED, this would contain
575 // only the permissions that have added, and for Reason::REMOVED, this would 575 // only the permissions that have added, and for Reason::REMOVED, this would
576 // only contain the removed permissions. 576 // only contain the removed permissions.
577 const PermissionSet* permissions; 577 const PermissionSet& permissions;
578 578
579 UpdatedExtensionPermissionsInfo( 579 UpdatedExtensionPermissionsInfo(const Extension* extension,
580 const Extension* extension, 580 const PermissionSet& permissions,
581 const PermissionSet* permissions, 581 Reason reason);
582 Reason reason);
583 }; 582 };
584 583
585 } // namespace extensions 584 } // namespace extensions
586 585
587 #endif // EXTENSIONS_COMMON_EXTENSION_H_ 586 #endif // EXTENSIONS_COMMON_EXTENSION_H_
OLDNEW
« no previous file with comments | « extensions/browser/extension_prefs.cc ('k') | extensions/common/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698