void SecurityFilterPeer::OnCompletedRequest(
int error_code,
bool was_ignored_by_handler,
+ bool stale_copy_in_cache,
const std::string& security_info,
- const base::TimeTicks& completion_time) {
+ const base::TimeTicks& completion_time,
+ int64 total_transfer_size) {
NOTREACHED();
}
void BufferedPeer::OnCompletedRequest(int error_code,
bool was_ignored_by_handler,
+ bool stale_copy_in_cache,
const std::string& security_info,
- const base::TimeTicks& completion_time) {
+ const base::TimeTicks& completion_time,
+ int64 total_transfer_size) {
// Make sure we delete ourselves at the end of this call.
scoped_ptr<BufferedPeer> this_deleter(this);
if (error_code != net::OK || !DataReady()) {
// Pretend we failed to load the resource.
original_peer_->OnReceivedResponse(response_info_);
- original_peer_->OnCompletedRequest(net::ERR_ABORTED, false, security_info,
- completion_time);
+ original_peer_->OnCompletedRequest(net::ERR_ABORTED, false,
+ stale_copy_in_cache,
+ security_info, completion_time,
+ total_transfer_size);
return;
}
static_cast<int>(data_.size()),
-1);
original_peer_->OnCompletedRequest(error_code, was_ignored_by_handler,
- security_info, completion_time);
+ stale_copy_in_cache, security_info,
+ completion_time, total_transfer_size);
}
////////////////////////////////////////////////////////////////////////////////
void ReplaceContentPeer::OnCompletedRequest(
int error_code,
bool was_ignored_by_handler,
+ bool stale_copy_in_cache,
const std::string& security_info,
- const base::TimeTicks& completion_time) {
+ const base::TimeTicks& completion_time,
+ int64 total_transfer_size) {
webkit_glue::ResourceResponseInfo info;
ProcessResponseInfo(info, &info, mime_type_);
info.security_info = security_info;
-1);
original_peer_->OnCompletedRequest(net::OK,
false,
+ stale_copy_in_cache,
security_info,
- completion_time);
+ completion_time,
+ total_transfer_size);
// The request processing is complete, we must delete ourselves.
delete this;