| 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 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_ |
| OLD | NEW |