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

Unified Diff: chrome/browser/extensions/permissions_updater.h

Issue 10675007: Move each permission classes to its own files in extensions/permissions (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase again Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/extension_tab_helper.cc ('k') | chrome/browser/extensions/permissions_updater.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « chrome/browser/extensions/extension_tab_helper.cc ('k') | chrome/browser/extensions/permissions_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698