diff options
author | yoz@chromium.org <yoz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-19 15:37:25 +0000 |
---|---|---|
committer | yoz@chromium.org <yoz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-19 15:37:25 +0000 |
commit | c41003476ce57ae410821397bedc90310d3dc37b (patch) | |
tree | 6d5138b602c715658594caef851fdfa228662afc /chrome/common/extensions/permissions/permission_message_util.h | |
parent | 2da80093a7b99a024427c5091b99926d970b108b (diff) | |
download | chromium_src-c41003476ce57ae410821397bedc90310d3dc37b.zip chromium_src-c41003476ce57ae410821397bedc90310d3dc37b.tar.gz chromium_src-c41003476ce57ae410821397bedc90310d3dc37b.tar.bz2 |
Move permission warning message handling from PermissionSet to PermissionMessageProvider.
This refactors PermissionSet to be closer to just a set of permissions and moves the understanding of permission message strings to a utility class.
BUG=162530
Review URL: https://codereview.chromium.org/27446002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229565 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/permissions/permission_message_util.h')
-rw-r--r-- | chrome/common/extensions/permissions/permission_message_util.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/common/extensions/permissions/permission_message_util.h b/chrome/common/extensions/permissions/permission_message_util.h index 1ff5a5a..13b41c1 100644 --- a/chrome/common/extensions/permissions/permission_message_util.h +++ b/chrome/common/extensions/permissions/permission_message_util.h @@ -10,6 +10,8 @@ namespace extensions { class PermissionMessage; +class PermissionSet; +class URLPatternSet; } namespace permission_message_util { @@ -19,6 +21,11 @@ namespace permission_message_util { extensions::PermissionMessage CreateFromHostList( const std::set<std::string>& hosts); +std::set<std::string> GetDistinctHosts( + const extensions::URLPatternSet& host_patterns, + bool include_rcd, + bool exclude_file_scheme); + } // namespace permission_message_util #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_UTIL_H_ |