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

Unified Diff: chrome/common/extensions/extension_l10n_util.h

Issue 570007: Replace __MSG_some_name__ template within extension css/html files with local... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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/chrome_tests.gypi ('k') | chrome/common/extensions/extension_l10n_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/extensions/extension_l10n_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698