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

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

Issue 1721813002: Adding DRP specfic UMA for FirstContentfulPaint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NavigationData final draft before adding tests Created 4 years, 8 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 // 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 1711 matching lines...) Expand 10 before | Expand all | Expand 10 after
1722 // Insert a buffered event handler before the actual one. 1722 // Insert a buffered event handler before the actual one.
1723 handler.reset(new MimeTypeResourceHandler(std::move(handler), this, 1723 handler.reset(new MimeTypeResourceHandler(std::move(handler), this,
1724 plugin_service, request)); 1724 plugin_service, request));
1725 1725
1726 ScopedVector<ResourceThrottle> throttles; 1726 ScopedVector<ResourceThrottle> throttles;
1727 1727
1728 // Add a NavigationResourceThrottle for navigations. 1728 // Add a NavigationResourceThrottle for navigations.
1729 // PlzNavigate: the throttle is unnecessary as communication with the UI 1729 // PlzNavigate: the throttle is unnecessary as communication with the UI
1730 // thread is handled by the NavigationURLloader. 1730 // thread is handled by the NavigationURLloader.
1731 if (!IsBrowserSideNavigationEnabled() && IsResourceTypeFrame(resource_type)) 1731 if (!IsBrowserSideNavigationEnabled() && IsResourceTypeFrame(resource_type))
1732 throttles.push_back(new NavigationResourceThrottle(request)); 1732 throttles.push_back(new NavigationResourceThrottle(request, this));
1733 1733
1734 if (delegate_) { 1734 if (delegate_) {
1735 delegate_->RequestBeginning(request, 1735 delegate_->RequestBeginning(request,
1736 resource_context, 1736 resource_context,
1737 appcache_service, 1737 appcache_service,
1738 resource_type, 1738 resource_type,
1739 &throttles); 1739 &throttles);
1740 } 1740 }
1741 1741
1742 if (request->has_upload()) { 1742 if (request->has_upload()) {
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
2319 info.is_main_frame ? REQUEST_CONTEXT_FRAME_TYPE_TOP_LEVEL 2319 info.is_main_frame ? REQUEST_CONTEXT_FRAME_TYPE_TOP_LEVEL
2320 : REQUEST_CONTEXT_FRAME_TYPE_NESTED; 2320 : REQUEST_CONTEXT_FRAME_TYPE_NESTED;
2321 ServiceWorkerRequestHandler::InitializeForNavigation( 2321 ServiceWorkerRequestHandler::InitializeForNavigation(
2322 new_request.get(), service_worker_handle_core, blob_context, 2322 new_request.get(), service_worker_handle_core, blob_context,
2323 info.begin_params.skip_service_worker, resource_type, 2323 info.begin_params.skip_service_worker, resource_type,
2324 info.begin_params.request_context_type, frame_type, info.request_body); 2324 info.begin_params.request_context_type, frame_type, info.request_body);
2325 2325
2326 // TODO(davidben): Attach AppCacheInterceptor. 2326 // TODO(davidben): Attach AppCacheInterceptor.
2327 2327
2328 std::unique_ptr<ResourceHandler> handler( 2328 std::unique_ptr<ResourceHandler> handler(
2329 new NavigationResourceHandler(new_request.get(), loader)); 2329 new NavigationResourceHandler(new_request.get(), loader, this));
2330 2330
2331 // TODO(davidben): Pass in the appropriate appcache_service. Also fix the 2331 // TODO(davidben): Pass in the appropriate appcache_service. Also fix the
2332 // dependency on child_id/route_id. Those are used by the ResourceScheduler; 2332 // dependency on child_id/route_id. Those are used by the ResourceScheduler;
2333 // currently it's a no-op. 2333 // currently it's a no-op.
2334 handler = 2334 handler =
2335 AddStandardHandlers(new_request.get(), resource_type, resource_context, 2335 AddStandardHandlers(new_request.get(), resource_type, resource_context,
2336 nullptr, // appcache_service 2336 nullptr, // appcache_service
2337 -1, // child_id 2337 -1, // child_id
2338 -1, // route_id 2338 -1, // route_id
2339 std::move(handler)); 2339 std::move(handler));
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
2685 ssl.cert_id = GetCertStore()->StoreCert(ssl_info.cert.get(), child_id); 2685 ssl.cert_id = GetCertStore()->StoreCert(ssl_info.cert.get(), child_id);
2686 response->head.security_info = SerializeSecurityInfo(ssl); 2686 response->head.security_info = SerializeSecurityInfo(ssl);
2687 } 2687 }
2688 2688
2689 CertStore* ResourceDispatcherHostImpl::GetCertStore() { 2689 CertStore* ResourceDispatcherHostImpl::GetCertStore() {
2690 return cert_store_for_testing_ ? cert_store_for_testing_ 2690 return cert_store_for_testing_ ? cert_store_for_testing_
2691 : CertStore::GetInstance(); 2691 : CertStore::GetInstance();
2692 } 2692 }
2693 2693
2694 } // namespace content 2694 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698