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

Unified Diff: chrome/common/filter_policy.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
Index: chrome/common/filter_policy.h
===================================================================
--- chrome/common/filter_policy.h (revision 38490)
+++ chrome/common/filter_policy.h (working copy)
@@ -11,12 +11,17 @@
// can decide to filter it. The filtering is done in the renderer. This class
// enumerates the different policy that can be used for the filtering. It is
// passed along with resource response messages.
+// It can be used for content post-processing, like message replacement within
+// extension css files.
class FilterPolicy {
public:
enum Type {
// Pass all types of resources through unmodified.
DONT_FILTER = 0,
+ // Post-process extension css files.
+ FILTER_EXTENSION_MESSAGES,
+
// Block all types of resources, except images. For images, modify them to
// indicate that they have been filtered.
// TODO(abarth): This is a misleading name for this enum value. We should
« no previous file with comments | « chrome/common/extensions/extension_message_filter_peer_unittest.cc ('k') | chrome/common/resource_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698