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

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

Issue 160513002: Reports Prerender and Profile Total Bytes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding some DCHECKs Created 6 years, 10 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 <algorithm> 9 #include <algorithm>
10 #include <set> 10 #include <set>
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 UMA_HISTOGRAM_SPARSE_SLOWLY( 778 UMA_HISTOGRAM_SPARSE_SLOWLY(
779 "Net.ErrorCodesForImages", 779 "Net.ErrorCodesForImages",
780 -loader->request()->status().error()); 780 -loader->request()->status().error());
781 } 781 }
782 // This enumeration has "2" appended to distinguish it from older versions. 782 // This enumeration has "2" appended to distinguish it from older versions.
783 UMA_HISTOGRAM_SPARSE_SLOWLY( 783 UMA_HISTOGRAM_SPARSE_SLOWLY(
784 "Net.ErrorCodesForSubresources2", 784 "Net.ErrorCodesForSubresources2",
785 -loader->request()->status().error()); 785 -loader->request()->status().error());
786 } 786 }
787 787
788 if (delegate_)
789 delegate_->RequestComplete(loader->request());
790
788 // Destroy the ResourceLoader. 791 // Destroy the ResourceLoader.
789 RemovePendingRequest(info->GetChildID(), info->GetRequestID()); 792 RemovePendingRequest(info->GetChildID(), info->GetRequestID());
790 } 793 }
791 794
792 void ResourceDispatcherHostImpl::OnInit() { 795 void ResourceDispatcherHostImpl::OnInit() {
793 scheduler_.reset(new ResourceScheduler); 796 scheduler_.reset(new ResourceScheduler);
794 appcache::AppCacheInterceptor::EnsureRegistered(); 797 appcache::AppCacheInterceptor::EnsureRegistered();
795 } 798 }
796 799
797 void ResourceDispatcherHostImpl::OnShutdown() { 800 void ResourceDispatcherHostImpl::OnShutdown() {
(...skipping 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after
1983 if ((load_flags & net::LOAD_REPORT_RAW_HEADERS) 1986 if ((load_flags & net::LOAD_REPORT_RAW_HEADERS)
1984 && !policy->CanReadRawCookies(child_id)) { 1987 && !policy->CanReadRawCookies(child_id)) {
1985 VLOG(1) << "Denied unauthorized request for raw headers"; 1988 VLOG(1) << "Denied unauthorized request for raw headers";
1986 load_flags &= ~net::LOAD_REPORT_RAW_HEADERS; 1989 load_flags &= ~net::LOAD_REPORT_RAW_HEADERS;
1987 } 1990 }
1988 1991
1989 return load_flags; 1992 return load_flags;
1990 } 1993 }
1991 1994
1992 } // namespace content 1995 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698