| Index: chrome/browser/extensions/permissions_updater.h
|
| diff --git a/chrome/browser/extensions/permissions_updater.h b/chrome/browser/extensions/permissions_updater.h
|
| index f22cdc668bb779a23dbfc435c42943c0e748a2a0..d19e94dd9045013d1897f60bcb7bb72d0d5475a1 100644
|
| --- a/chrome/browser/extensions/permissions_updater.h
|
| +++ b/chrome/browser/extensions/permissions_updater.h
|
| @@ -27,6 +27,11 @@ class PermissionSet;
|
| // and notifies interested parties of the changes.
|
| class PermissionsUpdater {
|
| public:
|
| + enum InitFlag {
|
| + INIT_FLAG_NONE = 0,
|
| + INIT_FLAG_TRANSIENT = 1 << 0,
|
| + };
|
| +
|
| explicit PermissionsUpdater(content::BrowserContext* browser_context);
|
| ~PermissionsUpdater();
|
|
|
| @@ -49,6 +54,7 @@ class PermissionsUpdater {
|
| // permissions currently requested by the extension and all the permissions
|
| // required by the extension.
|
| void InitializePermissions(const Extension* extension);
|
| + void InitializePermissions(const Extension* extension, InitFlag init_flag);
|
|
|
| // Grants any withheld all-hosts (or all-hosts-like) permissions.
|
| void GrantWithheldImpliedAllHosts(const Extension* extension);
|
| @@ -70,6 +76,11 @@ class PermissionsUpdater {
|
| const scoped_refptr<const PermissionSet>& active,
|
| scoped_refptr<const PermissionSet> withheld);
|
|
|
| + void SetPermissionsWithoutPrefs(
|
| + const Extension* extension,
|
| + const scoped_refptr<const PermissionSet>& active,
|
| + scoped_refptr<const PermissionSet> withheld);
|
| +
|
| // Dispatches specified event to the extension.
|
| void DispatchEvent(const std::string& extension_id,
|
| const char* event_name,
|
|
|