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

Side by Side Diff: content/child/web_url_loader_impl.cc

Issue 2654663004: [Not for review] record detailed time breakdown of SW related requests.
Patch Set: add stream uma Created 3 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
« no previous file with comments | « content/child/resource_dispatcher.cc ('k') | content/common/resource_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "content/child/web_url_loader_impl.h" 5 #include "content/child/web_url_loader_impl.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
(...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after
1047 WebURLLoaderImpl::~WebURLLoaderImpl() { 1047 WebURLLoaderImpl::~WebURLLoaderImpl() {
1048 cancel(); 1048 cancel();
1049 } 1049 }
1050 1050
1051 void WebURLLoaderImpl::PopulateURLResponse(const GURL& url, 1051 void WebURLLoaderImpl::PopulateURLResponse(const GURL& url,
1052 const ResourceResponseInfo& info, 1052 const ResourceResponseInfo& info,
1053 WebURLResponse* response, 1053 WebURLResponse* response,
1054 bool report_security_info) { 1054 bool report_security_info) {
1055 response->setURL(url); 1055 response->setURL(url);
1056 response->setResponseTime(info.response_time.ToInternalValue()); 1056 response->setResponseTime(info.response_time.ToInternalValue());
1057 response->setResponseStart(info.response_start.ToInternalValue());
1057 response->setMIMEType(WebString::fromUTF8(info.mime_type)); 1058 response->setMIMEType(WebString::fromUTF8(info.mime_type));
1058 response->setTextEncodingName(WebString::fromUTF8(info.charset)); 1059 response->setTextEncodingName(WebString::fromUTF8(info.charset));
1059 response->setExpectedContentLength(info.content_length); 1060 response->setExpectedContentLength(info.content_length);
1060 response->setHasMajorCertificateErrors(info.has_major_certificate_errors); 1061 response->setHasMajorCertificateErrors(info.has_major_certificate_errors);
1061 response->setAppCacheID(info.appcache_id); 1062 response->setAppCacheID(info.appcache_id);
1062 response->setAppCacheManifestURL(info.appcache_manifest_url); 1063 response->setAppCacheManifestURL(info.appcache_manifest_url);
1063 response->setWasCached(!info.load_timing.request_start_time.is_null() && 1064 response->setWasCached(!info.load_timing.request_start_time.is_null() &&
1064 info.response_time < info.load_timing.request_start_time); 1065 info.response_time < info.load_timing.request_start_time);
1065 response->setRemoteIPAddress( 1066 response->setRemoteIPAddress(
1066 WebString::fromUTF8(info.socket_address.HostForURL())); 1067 WebString::fromUTF8(info.socket_address.HostForURL()));
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
1272 int intra_priority_value) { 1273 int intra_priority_value) {
1273 context_->DidChangePriority(new_priority, intra_priority_value); 1274 context_->DidChangePriority(new_priority, intra_priority_value);
1274 } 1275 }
1275 1276
1276 void WebURLLoaderImpl::setLoadingTaskRunner( 1277 void WebURLLoaderImpl::setLoadingTaskRunner(
1277 base::SingleThreadTaskRunner* loading_task_runner) { 1278 base::SingleThreadTaskRunner* loading_task_runner) {
1278 context_->SetTaskRunner(loading_task_runner); 1279 context_->SetTaskRunner(loading_task_runner);
1279 } 1280 }
1280 1281
1281 } // namespace content 1282 } // namespace content
OLDNEW
« no previous file with comments | « content/child/resource_dispatcher.cc ('k') | content/common/resource_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698