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

Side by Side Diff: net/url_request/url_request_http_job.cc

Issue 2161193003: Use __func__ instead of __FUNCTION__. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format hates WebKit style Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/url_request/url_request_http_job.h" 5 #include "net/url_request/url_request_http_job.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 1373 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 bool URLRequestHttpJob::ShouldFixMismatchedContentLength(int rv) const { 1384 bool URLRequestHttpJob::ShouldFixMismatchedContentLength(int rv) const {
1385 // Some servers send the body compressed, but specify the content length as 1385 // Some servers send the body compressed, but specify the content length as
1386 // the uncompressed size. Although this violates the HTTP spec we want to 1386 // the uncompressed size. Although this violates the HTTP spec we want to
1387 // support it (as IE and FireFox do), but *only* for an exact match. 1387 // support it (as IE and FireFox do), but *only* for an exact match.
1388 // See http://crbug.com/79694. 1388 // See http://crbug.com/79694.
1389 if (rv == ERR_CONTENT_LENGTH_MISMATCH || 1389 if (rv == ERR_CONTENT_LENGTH_MISMATCH ||
1390 rv == ERR_INCOMPLETE_CHUNKED_ENCODING) { 1390 rv == ERR_INCOMPLETE_CHUNKED_ENCODING) {
1391 if (request_ && request_->response_headers()) { 1391 if (request_ && request_->response_headers()) {
1392 int64_t expected_length = 1392 int64_t expected_length =
1393 request_->response_headers()->GetContentLength(); 1393 request_->response_headers()->GetContentLength();
1394 VLOG(1) << __FUNCTION__ << "() " 1394 VLOG(1) << __func__ << "() \"" << request_->url().spec() << "\""
1395 << "\"" << request_->url().spec() << "\""
1396 << " content-length = " << expected_length 1395 << " content-length = " << expected_length
1397 << " pre total = " << prefilter_bytes_read() 1396 << " pre total = " << prefilter_bytes_read()
1398 << " post total = " << postfilter_bytes_read(); 1397 << " post total = " << postfilter_bytes_read();
1399 if (postfilter_bytes_read() == expected_length) { 1398 if (postfilter_bytes_read() == expected_length) {
1400 // Clear the error. 1399 // Clear the error.
1401 return true; 1400 return true;
1402 } 1401 }
1403 } 1402 }
1404 } 1403 }
1405 return false; 1404 return false;
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
1650 // Notify NetworkQualityEstimator. 1649 // Notify NetworkQualityEstimator.
1651 if (request()) { 1650 if (request()) {
1652 NetworkQualityEstimator* network_quality_estimator = 1651 NetworkQualityEstimator* network_quality_estimator =
1653 request()->context()->network_quality_estimator(); 1652 request()->context()->network_quality_estimator();
1654 if (network_quality_estimator) 1653 if (network_quality_estimator)
1655 network_quality_estimator->NotifyURLRequestDestroyed(*request()); 1654 network_quality_estimator->NotifyURLRequestDestroyed(*request());
1656 } 1655 }
1657 } 1656 }
1658 1657
1659 } // namespace net 1658 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698