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

Unified Diff: extensions/common/permissions/permission_message_provider.h

Issue 1004123003: Extensions: Switch to new permission message system, part III (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permissions_tests
Patch Set: Mac Created 5 years, 9 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
Index: extensions/common/permissions/permission_message_provider.h
diff --git a/extensions/common/permissions/permission_message_provider.h b/extensions/common/permissions/permission_message_provider.h
index 3b8e5aca9f2531c2174ab3275318833668c31287..ca11ab37b20729026bc5b578b1f6e00f03c35e62 100644
--- a/extensions/common/permissions/permission_message_provider.h
+++ b/extensions/common/permissions/permission_message_provider.h
@@ -78,25 +78,6 @@ class PermissionMessageProvider {
virtual CoalescedPermissionMessages GetCoalescedPermissionMessages(
const PermissionIDSet& permissions) const = 0;
- // Gets the localized permission messages that represent this set (represented
- // as strings). The set of permission messages shown varies by extension type.
- // Any permissions added by API, host or manifest permissions need to be added
- // to |permissions| before this function is called.
- // Deprecated; use GetPermissionMessageStrings instead.
- // TODO(treib): Remove this once we've switched to the new system.
- virtual std::vector<base::string16> GetLegacyWarningMessages(
- const PermissionSet* permissions,
- Manifest::Type extension_type) const = 0;
-
- // Gets the localized permission details for messages that represent this set
- // (represented as strings). The set of permission messages shown varies by
- // extension type.
- // Deprecated; use GetPermissionMessageStrings instead.
- // TODO(treib): Remove this once we've switched to the new system.
- virtual std::vector<base::string16> GetLegacyWarningMessagesDetails(
- const PermissionSet* permissions,
- Manifest::Type extension_type) const = 0;
-
// Returns true if |new_permissions| has a greater privilege level than
// |old_permissions|.
// Whether certain permissions are considered varies by extension type.
@@ -116,6 +97,26 @@ class PermissionMessageProvider {
virtual PermissionIDSet GetAllPermissionIDs(
const PermissionSet* permissions,
Manifest::Type extension_type) const = 0;
+
+ private:
Yoyo Zhou 2015/03/30 20:29:27 Cool!
+ // Gets the localized permission messages that represent this set (represented
+ // as strings). The set of permission messages shown varies by extension type.
+ // Any permissions added by API, host or manifest permissions need to be added
+ // to |permissions| before this function is called.
+ // Deprecated; use GetPermissionMessageStrings instead.
+ // TODO(treib): Remove this once we've switched to the new system.
+ virtual std::vector<base::string16> GetLegacyWarningMessages(
+ const PermissionSet* permissions,
+ Manifest::Type extension_type) const = 0;
+
+ // Gets the localized permission details for messages that represent this set
+ // (represented as strings). The set of permission messages shown varies by
+ // extension type.
+ // Deprecated; use GetPermissionMessageStrings instead.
+ // TODO(treib): Remove this once we've switched to the new system.
+ virtual std::vector<base::string16> GetLegacyWarningMessagesDetails(
+ const PermissionSet* permissions,
+ Manifest::Type extension_type) const = 0;
};
} // namespace extensions
« no previous file with comments | « extensions/browser/api/management/management_api.cc ('k') | extensions/common/permissions/permissions_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698