OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |