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

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

Issue 1921613003: Count successes of link rel=prefetch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove braces Created 4 years, 7 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
« no previous file with comments | « content/browser/loader/resource_loader.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1602 matching lines...) Expand 10 before | Expand all | Expand 10 after
1613 UMA_HISTOGRAM_TIMES("Net.HttpJob.TotalTimeCached", total_time); 1613 UMA_HISTOGRAM_TIMES("Net.HttpJob.TotalTimeCached", total_time);
1614 if (is_https_google) { 1614 if (is_https_google) {
1615 if (used_quic) { 1615 if (used_quic) {
1616 UMA_HISTOGRAM_MEDIUM_TIMES("Net.HttpJob.TotalTimeCached.Secure.Quic", 1616 UMA_HISTOGRAM_MEDIUM_TIMES("Net.HttpJob.TotalTimeCached.Secure.Quic",
1617 total_time); 1617 total_time);
1618 } else { 1618 } else {
1619 UMA_HISTOGRAM_MEDIUM_TIMES( 1619 UMA_HISTOGRAM_MEDIUM_TIMES(
1620 "Net.HttpJob.TotalTimeCached.Secure.NotQuic", total_time); 1620 "Net.HttpJob.TotalTimeCached.Secure.NotQuic", total_time);
1621 } 1621 }
1622 } 1622 }
1623 } else { 1623 if (response_info_->unused_since_prefetch)
1624 UMA_HISTOGRAM_COUNTS("Net.Prefetch.HitBytes", prefilter_bytes_read());
1625 } else {
1624 UMA_HISTOGRAM_TIMES("Net.HttpJob.TotalTimeNotCached", total_time); 1626 UMA_HISTOGRAM_TIMES("Net.HttpJob.TotalTimeNotCached", total_time);
1625 if (is_https_google) { 1627 if (is_https_google) {
1626 if (used_quic) { 1628 if (used_quic) {
1627 UMA_HISTOGRAM_MEDIUM_TIMES( 1629 UMA_HISTOGRAM_MEDIUM_TIMES(
1628 "Net.HttpJob.TotalTimeNotCached.Secure.Quic", total_time); 1630 "Net.HttpJob.TotalTimeNotCached.Secure.Quic", total_time);
1629 } else { 1631 } else {
1630 UMA_HISTOGRAM_MEDIUM_TIMES( 1632 UMA_HISTOGRAM_MEDIUM_TIMES(
1631 "Net.HttpJob.TotalTimeNotCached.Secure.NotQuic", total_time); 1633 "Net.HttpJob.TotalTimeNotCached.Secure.NotQuic", total_time);
1632 } 1634 }
1633 } 1635 }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1665 return override_response_headers_.get() ? 1667 return override_response_headers_.get() ?
1666 override_response_headers_.get() : 1668 override_response_headers_.get() :
1667 transaction_->GetResponseInfo()->headers.get(); 1669 transaction_->GetResponseInfo()->headers.get();
1668 } 1670 }
1669 1671
1670 void URLRequestHttpJob::NotifyURLRequestDestroyed() { 1672 void URLRequestHttpJob::NotifyURLRequestDestroyed() {
1671 awaiting_callback_ = false; 1673 awaiting_callback_ = false;
1672 } 1674 }
1673 1675
1674 } // namespace net 1676 } // namespace net
OLDNEW
« no previous file with comments | « content/browser/loader/resource_loader.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698