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

Unified Diff: net/url_request/url_request_http_job.cc

Issue 1080763003: Remove URLRequestJob::filter_input_byte_count_ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix merge Created 5 years, 8 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 | « no previous file | net/url_request/url_request_job.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_http_job.cc
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc
index 33fb66278f0afcd782443733aba06def900cf4e5..07927a4bf0657b99d358f2b084318727b9676ea4 100644
--- a/net/url_request/url_request_http_job.cc
+++ b/net/url_request/url_request_http_job.cc
@@ -114,7 +114,7 @@ URLRequestHttpJob::HttpFilterContext::SdchDictionariesAdvertised() const {
}
int64 URLRequestHttpJob::HttpFilterContext::GetByteReadCount() const {
- return job_->filter_input_byte_count();
+ return job_->prefilter_bytes_read();
}
int URLRequestHttpJob::HttpFilterContext::GetResponseCode() const {
@@ -1390,17 +1390,14 @@ void URLRequestHttpJob::UpdatePacketReadTimes() {
if (!packet_timing_enabled_)
return;
- if (filter_input_byte_count() <= bytes_observed_in_packets_) {
- DCHECK_EQ(filter_input_byte_count(), bytes_observed_in_packets_);
- return; // No new bytes have arrived.
- }
+ DCHECK_GT(prefilter_bytes_read(), bytes_observed_in_packets_);
base::Time now(base::Time::Now());
if (!bytes_observed_in_packets_)
request_time_snapshot_ = now;
final_packet_time_ = now;
- bytes_observed_in_packets_ = filter_input_byte_count();
+ bytes_observed_in_packets_ = prefilter_bytes_read();
}
void URLRequestHttpJob::RecordPacketStats(
« no previous file with comments | « no previous file | net/url_request/url_request_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698