summaryrefslogtreecommitdiffstats
path: root/chrome/common/resource_response.h
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-18 18:38:09 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-18 18:38:09 +0000
commit8a58f9a5e0b7e62d38ceef9c6a3b691a8593e7d9 (patch)
tree36f7876f1b49e7edf492198c79a587090e7e6233 /chrome/common/resource_response.h
parent6e42e7275a6eb6d374e74367aa6c55c1df36568a (diff)
downloadchromium_src-8a58f9a5e0b7e62d38ceef9c6a3b691a8593e7d9.zip
chromium_src-8a58f9a5e0b7e62d38ceef9c6a3b691a8593e7d9.tar.gz
chromium_src-8a58f9a5e0b7e62d38ceef9c6a3b691a8593e7d9.tar.bz2
Remove the mostly-unused FilterPolicy class. Convert the only actually-used bit, FILTER_EXTENSION_MESSAGES, into a bool that's only passed to places that really need it.
Also renames ExtensionMessageFilterPeer to ExtensionLocalizationPeer in hopes of making its one use more apparent. I added a couple comments too. BUG=none TEST=none Review URL: http://codereview.chromium.org/2105006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47533 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/resource_response.h')
-rw-r--r--chrome/common/resource_response.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/common/resource_response.h b/chrome/common/resource_response.h
index 840b864..1c9b766 100644
--- a/chrome/common/resource_response.h
+++ b/chrome/common/resource_response.h
@@ -10,7 +10,6 @@
#include <string>
#include "base/ref_counted.h"
-#include "chrome/common/filter_policy.h"
#include "googleurl/src/gurl.h"
#include "net/url_request/url_request_status.h"
#include "webkit/glue/resource_loader_bridge.h"
@@ -18,14 +17,15 @@
// Parameters for a resource response header.
struct ResourceResponseHead
: webkit_glue::ResourceLoaderBridge::ResponseInfo {
- ResourceResponseHead() : filter_policy(FilterPolicy::DONT_FILTER) {}
+ ResourceResponseHead() : replace_extension_localization_templates(false) {}
// The response status.
URLRequestStatus status;
- // Specifies if the resource should be filtered before being displayed
- // (insecure resources can be filtered to keep the page secure).
- FilterPolicy::Type filter_policy;
+ // Whether we should apply a filter to this resource that replaces
+ // localization templates with the appropriate localized strings. This is set
+ // for CSS resources used by extensions.
+ bool replace_extension_localization_templates;
};
// Parameters for a synchronous resource response.