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

Side by Side Diff: content/browser/loader/resource_dispatcher_host_impl.cc

Issue 2478573004: Convert GURL::{host,path} to GURL::{host_piece,path_piece} for ==. (Closed)
Patch Set: Created 4 years, 1 month 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 // 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
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 1843 matching lines...) Expand 10 before | Expand all | Expand 10 after
2785 &throttles); 2785 &throttles);
2786 if (!throttles.empty()) { 2786 if (!throttles.empty()) {
2787 handler.reset(new ThrottlingResourceHandler(std::move(handler), request, 2787 handler.reset(new ThrottlingResourceHandler(std::move(handler), request,
2788 std::move(throttles))); 2788 std::move(throttles)));
2789 } 2789 }
2790 } 2790 }
2791 return handler; 2791 return handler;
2792 } 2792 }
2793 2793
2794 } // namespace content 2794 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698