Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 } | |
|
gavinp
2016/04/25 15:39:05
Nit: I don't believe you need these braces.
jkarlin
2016/04/25 15:46:14
Done.
| |
| 1626 } else { | |
| 1624 UMA_HISTOGRAM_TIMES("Net.HttpJob.TotalTimeNotCached", total_time); | 1627 UMA_HISTOGRAM_TIMES("Net.HttpJob.TotalTimeNotCached", total_time); |
| 1625 if (is_https_google) { | 1628 if (is_https_google) { |
| 1626 if (used_quic) { | 1629 if (used_quic) { |
| 1627 UMA_HISTOGRAM_MEDIUM_TIMES( | 1630 UMA_HISTOGRAM_MEDIUM_TIMES( |
| 1628 "Net.HttpJob.TotalTimeNotCached.Secure.Quic", total_time); | 1631 "Net.HttpJob.TotalTimeNotCached.Secure.Quic", total_time); |
| 1629 } else { | 1632 } else { |
| 1630 UMA_HISTOGRAM_MEDIUM_TIMES( | 1633 UMA_HISTOGRAM_MEDIUM_TIMES( |
| 1631 "Net.HttpJob.TotalTimeNotCached.Secure.NotQuic", total_time); | 1634 "Net.HttpJob.TotalTimeNotCached.Secure.NotQuic", total_time); |
| 1632 } | 1635 } |
| 1633 } | 1636 } |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1665 return override_response_headers_.get() ? | 1668 return override_response_headers_.get() ? |
| 1666 override_response_headers_.get() : | 1669 override_response_headers_.get() : |
| 1667 transaction_->GetResponseInfo()->headers.get(); | 1670 transaction_->GetResponseInfo()->headers.get(); |
| 1668 } | 1671 } |
| 1669 | 1672 |
| 1670 void URLRequestHttpJob::NotifyURLRequestDestroyed() { | 1673 void URLRequestHttpJob::NotifyURLRequestDestroyed() { |
| 1671 awaiting_callback_ = false; | 1674 awaiting_callback_ = false; |
| 1672 } | 1675 } |
| 1673 | 1676 |
| 1674 } // namespace net | 1677 } // namespace net |
| OLD | NEW |