| Index: chrome/browser/extensions/permissions_updater.h
|
| diff --git a/chrome/browser/extensions/permissions_updater.h b/chrome/browser/extensions/permissions_updater.h
|
| index 863e620d5c9824fb22d543c329c87731c68d1926..ed666ff0c08ccac6b573a56d3dd22d6aab973499 100644
|
| --- a/chrome/browser/extensions/permissions_updater.h
|
| +++ b/chrome/browser/extensions/permissions_updater.h
|
| @@ -10,7 +10,6 @@
|
|
|
| #include "base/memory/ref_counted.h"
|
|
|
| -class ExtensionPermissionSet;
|
| class ExtensionPrefs;
|
| class Profile;
|
|
|
| @@ -21,6 +20,7 @@ class DictionaryValue;
|
| namespace extensions {
|
|
|
| class Extension;
|
| +class PermissionSet;
|
|
|
| // Updates an Extension's active and granted permissions in persistent storage
|
| // and notifies interested parties of the changes.
|
| @@ -33,12 +33,12 @@ class PermissionsUpdater {
|
| // and sends the relevant messages and notifications. This method assumes the
|
| // user has already been prompted, if necessary, for the extra permissions.
|
| void AddPermissions(const Extension* extension,
|
| - const ExtensionPermissionSet* permissions);
|
| + const PermissionSet* permissions);
|
|
|
| // Removes the set of |permissions| from the |extension|'s active permission
|
| // set and sends the relevant messages and notifications.
|
| void RemovePermissions(const Extension* extension,
|
| - const ExtensionPermissionSet* permissions);
|
| + const PermissionSet* permissions);
|
|
|
| // Adds all permissions in the |extension|'s active permissions to its
|
| // granted permission set.
|
| @@ -46,7 +46,7 @@ class PermissionsUpdater {
|
|
|
| // Sets the |extension|'s active permissions to |permissions|.
|
| void UpdateActivePermissions(const Extension* extension,
|
| - const ExtensionPermissionSet* permissions);
|
| + const PermissionSet* permissions);
|
|
|
| private:
|
| enum EventType {
|
| @@ -57,7 +57,7 @@ class PermissionsUpdater {
|
| // Dispatches specified event to the extension.
|
| void DispatchEvent(const std::string& extension_id,
|
| const char* event_name,
|
| - const ExtensionPermissionSet* changed_permissions);
|
| + const PermissionSet* changed_permissions);
|
|
|
| // Issues the relevant events, messages and notifications when the
|
| // |extension|'s permissions have |changed| (|changed| is the delta).
|
| @@ -66,7 +66,7 @@ class PermissionsUpdater {
|
| // onAdded/onRemoved events in the extension.
|
| void NotifyPermissionsUpdated(EventType event_type,
|
| const Extension* extension,
|
| - const ExtensionPermissionSet* changed);
|
| + const PermissionSet* changed);
|
|
|
| // Gets the ExtensionPrefs for the associated profile.
|
| ExtensionPrefs* GetExtensionPrefs();
|
|
|