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

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: 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
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 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 }; 569 };
570 570
571 Reason reason; 571 Reason reason;
572 572
573 // The extension who's permissions have changed. 573 // The extension who's permissions have changed.
574 const Extension* extension; 574 const Extension* extension;
575 575
576 // The permissions that have changed. For Reason::ADDED, this would contain 576 // The permissions that have changed. For Reason::ADDED, this would contain
577 // only the permissions that have added, and for Reason::REMOVED, this would 577 // only the permissions that have added, and for Reason::REMOVED, this would
578 // only contain the removed permissions. 578 // only contain the removed permissions.
579 const PermissionSet* permissions; 579 const PermissionSet& permissions;
580 580
581 UpdatedExtensionPermissionsInfo( 581 UpdatedExtensionPermissionsInfo(const Extension* extension,
582 const Extension* extension, 582 const PermissionSet& permissions,
583 const PermissionSet* permissions, 583 Reason reason);
584 Reason reason);
585 }; 584 };
586 585
587 } // namespace extensions 586 } // namespace extensions
588 587
589 #endif // EXTENSIONS_COMMON_EXTENSION_H_ 588 #endif // EXTENSIONS_COMMON_EXTENSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698