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

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

Issue 935963002: Use int64 time stamp when storing metadata to the HTTP cache. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test case Created 5 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/browser/renderer_host/render_message_filter.cc ('k') | content/common/view_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 <algorithm> 7 #include <algorithm>
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 10
(...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 net::ErrorToString(reason)); 961 net::ErrorToString(reason));
962 } 962 }
963 return error; 963 return error;
964 } 964 }
965 965
966 void WebURLLoaderImpl::PopulateURLResponse(const GURL& url, 966 void WebURLLoaderImpl::PopulateURLResponse(const GURL& url,
967 const ResourceResponseInfo& info, 967 const ResourceResponseInfo& info,
968 WebURLResponse* response) { 968 WebURLResponse* response) {
969 response->setURL(url); 969 response->setURL(url);
970 response->setResponseTime(info.response_time.ToDoubleT()); 970 response->setResponseTime(info.response_time.ToDoubleT());
971 // FIXME: remove static cast once setResponseTime is no longer overloaded.
972 response->setResponseTime(
973 static_cast<long long>(info.response_time.ToInternalValue()));
971 response->setMIMEType(WebString::fromUTF8(info.mime_type)); 974 response->setMIMEType(WebString::fromUTF8(info.mime_type));
972 response->setTextEncodingName(WebString::fromUTF8(info.charset)); 975 response->setTextEncodingName(WebString::fromUTF8(info.charset));
973 response->setExpectedContentLength(info.content_length); 976 response->setExpectedContentLength(info.content_length);
974 response->setSecurityInfo(info.security_info); 977 response->setSecurityInfo(info.security_info);
975 response->setAppCacheID(info.appcache_id); 978 response->setAppCacheID(info.appcache_id);
976 response->setAppCacheManifestURL(info.appcache_manifest_url); 979 response->setAppCacheManifestURL(info.appcache_manifest_url);
977 response->setWasCached(!info.load_timing.request_start_time.is_null() && 980 response->setWasCached(!info.load_timing.request_start_time.is_null() &&
978 info.response_time < info.load_timing.request_start_time); 981 info.response_time < info.load_timing.request_start_time);
979 response->setRemoteIPAddress( 982 response->setRemoteIPAddress(
980 WebString::fromUTF8(info.socket_address.host())); 983 WebString::fromUTF8(info.socket_address.host()));
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
1135 int intra_priority_value) { 1138 int intra_priority_value) {
1136 context_->DidChangePriority(new_priority, intra_priority_value); 1139 context_->DidChangePriority(new_priority, intra_priority_value);
1137 } 1140 }
1138 1141
1139 bool WebURLLoaderImpl::attachThreadedDataReceiver( 1142 bool WebURLLoaderImpl::attachThreadedDataReceiver(
1140 blink::WebThreadedDataReceiver* threaded_data_receiver) { 1143 blink::WebThreadedDataReceiver* threaded_data_receiver) {
1141 return context_->AttachThreadedDataReceiver(threaded_data_receiver); 1144 return context_->AttachThreadedDataReceiver(threaded_data_receiver);
1142 } 1145 }
1143 1146
1144 } // namespace content 1147 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698