| 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 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc
e-loading | 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc
e-loading |
| 6 | 6 |
| 7 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 7 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
| 8 | 8 |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 | 10 |
| (...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 921 UMA_HISTOGRAM_LONG_TIMES( | 921 UMA_HISTOGRAM_LONG_TIMES( |
| 922 "Net.RequestTime2.ErrTimedOut", request_loading_time); | 922 "Net.RequestTime2.ErrTimedOut", request_loading_time); |
| 923 break; | 923 break; |
| 924 default: | 924 default: |
| 925 UMA_HISTOGRAM_LONG_TIMES( | 925 UMA_HISTOGRAM_LONG_TIMES( |
| 926 "Net.RequestTime2.MiscError", request_loading_time); | 926 "Net.RequestTime2.MiscError", request_loading_time); |
| 927 break; | 927 break; |
| 928 } | 928 } |
| 929 | 929 |
| 930 if (loader->request()->url().SchemeIsCryptographic()) { | 930 if (loader->request()->url().SchemeIsCryptographic()) { |
| 931 if (loader->request()->url().host() == "www.google.com") { | 931 if (loader->request()->url().host_piece() == "www.google.com") { |
| 932 UMA_HISTOGRAM_SPARSE_SLOWLY("Net.ErrorCodesForHTTPSGoogleMainFrame2", | 932 UMA_HISTOGRAM_SPARSE_SLOWLY("Net.ErrorCodesForHTTPSGoogleMainFrame2", |
| 933 -loader->request()->status().error()); | 933 -loader->request()->status().error()); |
| 934 } | 934 } |
| 935 | 935 |
| 936 int num_valid_scts = std::count_if( | 936 int num_valid_scts = std::count_if( |
| 937 loader->request()->ssl_info().signed_certificate_timestamps.begin(), | 937 loader->request()->ssl_info().signed_certificate_timestamps.begin(), |
| 938 loader->request()->ssl_info().signed_certificate_timestamps.end(), | 938 loader->request()->ssl_info().signed_certificate_timestamps.end(), |
| 939 IsValidatedSCT); | 939 IsValidatedSCT); |
| 940 UMA_HISTOGRAM_COUNTS_100( | 940 UMA_HISTOGRAM_COUNTS_100( |
| 941 "Net.CertificateTransparency.MainFrameValidSCTCount", num_valid_scts); | 941 "Net.CertificateTransparency.MainFrameValidSCTCount", num_valid_scts); |
| (...skipping 1849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2791 &throttles); | 2791 &throttles); |
| 2792 if (!throttles.empty()) { | 2792 if (!throttles.empty()) { |
| 2793 handler.reset(new ThrottlingResourceHandler(std::move(handler), request, | 2793 handler.reset(new ThrottlingResourceHandler(std::move(handler), request, |
| 2794 std::move(throttles))); | 2794 std::move(throttles))); |
| 2795 } | 2795 } |
| 2796 } | 2796 } |
| 2797 return handler; | 2797 return handler; |
| 2798 } | 2798 } |
| 2799 | 2799 |
| 2800 } // namespace content | 2800 } // namespace content |
| OLD | NEW |