int buf_size,
int *bytes_read) {
DCHECK(!real_job_.get());
- return real_job_->ReadRawData(buf, buf_size, bytes_read);
+ // Read post-filtered data if available.
+ if (real_job_->HasFilter())
+ return real_job_->Read(buf, buf_size, bytes_read);
+ else
+ return real_job_->ReadRawData(buf, buf_size, bytes_read);
}
bool AdapterRequestJob::IsRedirectResponse(GURL* location,
return real_job_->GetResponseCode();
}
+void AdapterRequestJob::GetLoadTimingInfo(
+ net::LoadTimingInfo* load_timing_info) const {
+ real_job_->GetLoadTimingInfo(load_timing_info);
+}
+
base::WeakPtr<AdapterRequestJob> AdapterRequestJob::GetWeakPtr() {
return weak_factory_.GetWeakPtr();
}
bool GetCharset(std::string* charset) override;
void GetResponseInfo(net::HttpResponseInfo* info) override;
int GetResponseCode() const override;
+ void GetLoadTimingInfo(
+ net::LoadTimingInfo* load_timing_info) const override;
base::WeakPtr<AdapterRequestJob> GetWeakPtr();