Index: chrome/common/extensions/extension_l10n_util.h |
=================================================================== |
--- chrome/common/extensions/extension_l10n_util.h (revision 38490) |
+++ chrome/common/extensions/extension_l10n_util.h (working copy) |
@@ -11,10 +11,14 @@ |
#include <string> |
#include <vector> |
+#include "webkit/glue/resource_type.h" |
+ |
class DictionaryValue; |
class Extension; |
class ExtensionMessageBundle; |
class FilePath; |
+class GURL; |
+class ResourceDispatcherHostRequestInfo; |
struct ExtensionInfo; |
namespace extension_l10n_util { |
@@ -91,6 +95,12 @@ |
const std::set<std::string>& valid_locales, |
std::string* error); |
+// Applies FilterPolicy::FILTER_EXTENSION_MESSAGES to all text/css requests |
+// that have "chrome-extension://" scheme. |
+void ApplyMessageFilterPolicy(const GURL& url, |
+ const ResourceType::Type& resource_type, |
+ ResourceDispatcherHostRequestInfo* request_info); |
+ |
} // namespace extension_l10n_util |
#endif // CHROME_COMMON_EXTENSIONS_EXTENSION_L10N_UTIL_H_ |