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

Unified Diff: chrome/common/extensions/permissions/permission_message_util.h

Issue 27446002: Move permission warning message handling from PermissionSet to PermissionMessageProvider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 2 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: chrome/common/extensions/permissions/permission_message_util.h
diff --git a/chrome/common/extensions/permissions/permission_message_util.h b/chrome/common/extensions/permissions/permission_message_util.h
index 1ff5a5ade5717484464643c9e77c6db7830321c4..13b41c196ee6df48f95034c74725e39359168820 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_

Powered by Google App Engine
This is Rietveld 408576698