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

Unified Diff: chrome/common/security_filter_peer.cc

Issue 6621006: Take out the is_content_filtered bool that gets passed around betwen renderer... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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/common/security_filter_peer.h ('k') | chrome/plugin/chrome_plugin_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/security_filter_peer.cc
===================================================================
--- chrome/common/security_filter_peer.cc (revision 76828)
+++ chrome/common/security_filter_peer.cc (working copy)
@@ -75,8 +75,7 @@
}
void SecurityFilterPeer::OnReceivedResponse(
- const webkit_glue::ResourceResponseInfo& info,
- bool content_filtered) {
+ const webkit_glue::ResourceResponseInfo& info) {
NOTREACHED();
}
@@ -134,8 +133,7 @@
}
void BufferedPeer::OnReceivedResponse(
- const webkit_glue::ResourceResponseInfo& info,
- bool response_filtered) {
+ const webkit_glue::ResourceResponseInfo& info) {
ProcessResponseInfo(info, &response_info_, mime_type_);
}
@@ -152,14 +150,14 @@
// Give sub-classes a chance at altering the data.
if (status.status() != net::URLRequestStatus::SUCCESS || !DataReady()) {
// Pretend we failed to load the resource.
- original_peer_->OnReceivedResponse(response_info_, true);
+ original_peer_->OnReceivedResponse(response_info_);
net::URLRequestStatus status(net::URLRequestStatus::CANCELED,
net::ERR_ABORTED);
original_peer_->OnCompletedRequest(status, security_info, completion_time);
return;
}
- original_peer_->OnReceivedResponse(response_info_, true);
+ original_peer_->OnReceivedResponse(response_info_);
if (!data_.empty())
original_peer_->OnReceivedData(data_.data(),
static_cast<int>(data_.size()));
@@ -183,8 +181,7 @@
}
void ReplaceContentPeer::OnReceivedResponse(
- const webkit_glue::ResourceResponseInfo& info,
- bool content_filtered) {
+ const webkit_glue::ResourceResponseInfo& info) {
// Ignore this, we'll serve some alternate content in OnCompletedRequest.
}
@@ -200,7 +197,7 @@
ProcessResponseInfo(info, &info, mime_type_);
info.security_info = security_info;
info.content_length = static_cast<int>(data_.size());
- original_peer_->OnReceivedResponse(info, true);
+ original_peer_->OnReceivedResponse(info);
if (!data_.empty())
original_peer_->OnReceivedData(data_.data(),
static_cast<int>(data_.size()));
« no previous file with comments | « chrome/common/security_filter_peer.h ('k') | chrome/plugin/chrome_plugin_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698