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

Side by Side Diff: Source/platform/network/ResourceResponse.h

Issue 938643002: Preserve original int64 time stamp in ResourceResponse. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 void setServiceWorkerResponseType(WebServiceWorkerResponseType value) { m_se rviceWorkerResponseType = value; } 170 void setServiceWorkerResponseType(WebServiceWorkerResponseType value) { m_se rviceWorkerResponseType = value; }
171 171
172 const KURL& originalURLViaServiceWorker() const { return m_originalURLViaSer viceWorker; } 172 const KURL& originalURLViaServiceWorker() const { return m_originalURLViaSer viceWorker; }
173 void setOriginalURLViaServiceWorker(const KURL& url) { m_originalURLViaServi ceWorker = url; }; 173 void setOriginalURLViaServiceWorker(const KURL& url) { m_originalURLViaServi ceWorker = url; };
174 174
175 bool isMultipartPayload() const { return m_isMultipartPayload; } 175 bool isMultipartPayload() const { return m_isMultipartPayload; }
176 void setIsMultipartPayload(bool value) { m_isMultipartPayload = value; } 176 void setIsMultipartPayload(bool value) { m_isMultipartPayload = value; }
177 177
178 double responseTime() const { return m_responseTime; } 178 double responseTime() const { return m_responseTime; }
179 void setResponseTime(double responseTime) { m_responseTime = responseTime; } 179 void setResponseTime(double responseTime) { m_responseTime = responseTime; }
180 void setResponseTime(int64 responseTime) { m_originalResponseTime = response Time; }
180 181
181 const AtomicString& remoteIPAddress() const { return m_remoteIPAddress; } 182 const AtomicString& remoteIPAddress() const { return m_remoteIPAddress; }
182 void setRemoteIPAddress(const AtomicString& value) { m_remoteIPAddress = val ue; } 183 void setRemoteIPAddress(const AtomicString& value) { m_remoteIPAddress = val ue; }
183 184
184 unsigned short remotePort() const { return m_remotePort; } 185 unsigned short remotePort() const { return m_remotePort; }
185 void setRemotePort(unsigned short value) { m_remotePort = value; } 186 void setRemotePort(unsigned short value) { m_remotePort = value; }
186 187
187 const String& downloadedFilePath() const { return m_downloadedFilePath; } 188 const String& downloadedFilePath() const { return m_downloadedFilePath; }
188 void setDownloadedFilePath(const String&); 189 void setDownloadedFilePath(const String&);
189 190
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 // The type of the response which was fetched by the ServiceWorker. 275 // The type of the response which was fetched by the ServiceWorker.
275 WebServiceWorkerResponseType m_serviceWorkerResponseType; 276 WebServiceWorkerResponseType m_serviceWorkerResponseType;
276 277
277 // The original URL of the response which was fetched by the ServiceWorker. 278 // The original URL of the response which was fetched by the ServiceWorker.
278 // This may be empty if the response was created inside the ServiceWorker. 279 // This may be empty if the response was created inside the ServiceWorker.
279 KURL m_originalURLViaServiceWorker; 280 KURL m_originalURLViaServiceWorker;
280 281
281 // The time at which the response headers were received. For cached 282 // The time at which the response headers were received. For cached
282 // responses, this time could be "far" in the past. 283 // responses, this time could be "far" in the past.
283 double m_responseTime; 284 double m_responseTime;
285 int64 m_originalResponseTime;
284 286
285 // Remote IP address of the socket which fetched this resource. 287 // Remote IP address of the socket which fetched this resource.
286 AtomicString m_remoteIPAddress; 288 AtomicString m_remoteIPAddress;
287 289
288 // Remote port number of the socket which fetched this resource. 290 // Remote port number of the socket which fetched this resource.
289 unsigned short m_remotePort; 291 unsigned short m_remotePort;
290 292
291 // The downloaded file path if the load streamed to a file. 293 // The downloaded file path if the load streamed to a file.
292 String m_downloadedFilePath; 294 String m_downloadedFilePath;
293 295
(...skipping 29 matching lines...) Expand all
323 bool m_isMultipartPayload; 325 bool m_isMultipartPayload;
324 bool m_wasFetchedViaSPDY; 326 bool m_wasFetchedViaSPDY;
325 bool m_wasNpnNegotiated; 327 bool m_wasNpnNegotiated;
326 bool m_wasAlternateProtocolAvailable; 328 bool m_wasAlternateProtocolAvailable;
327 bool m_wasFetchedViaProxy; 329 bool m_wasFetchedViaProxy;
328 bool m_wasFetchedViaServiceWorker; 330 bool m_wasFetchedViaServiceWorker;
329 bool m_wasFallbackRequiredByServiceWorker; 331 bool m_wasFallbackRequiredByServiceWorker;
330 WebServiceWorkerResponseType m_serviceWorkerResponseType; 332 WebServiceWorkerResponseType m_serviceWorkerResponseType;
331 KURL m_originalURLViaServiceWorker; 333 KURL m_originalURLViaServiceWorker;
332 double m_responseTime; 334 double m_responseTime;
335 int64 m_originalResponseTime;
333 String m_remoteIPAddress; 336 String m_remoteIPAddress;
334 unsigned short m_remotePort; 337 unsigned short m_remotePort;
335 String m_downloadedFilePath; 338 String m_downloadedFilePath;
336 RefPtr<BlobDataHandle> m_downloadedFileHandle; 339 RefPtr<BlobDataHandle> m_downloadedFileHandle;
337 }; 340 };
338 341
339 } // namespace blink 342 } // namespace blink
340 343
341 #endif // ResourceResponse_h 344 #endif // ResourceResponse_h
OLDNEW
« no previous file with comments | « Source/platform/exported/WebURLResponse.cpp ('k') | Source/platform/network/ResourceResponse.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698