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

Unified Diff: WebCore/inspector/InspectorResource.cpp

Issue 3441018: Merge 67709 - 2010-09-17 Pavel Feldman <pfeldman@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/517/
Patch Set: Created 10 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « WebCore/inspector/InspectorResource.h ('k') | WebCore/loader/FrameLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: WebCore/inspector/InspectorResource.cpp
===================================================================
--- WebCore/inspector/InspectorResource.cpp (revision 67840)
+++ WebCore/inspector/InspectorResource.cpp (working copy)
@@ -117,6 +117,11 @@
m_changes.set(RequestChange);
}
+void InspectorResource::markAsCached()
+{
+ m_cached = true;
+}
+
void InspectorResource::updateResponse(const ResourceResponse& response)
{
m_expectedContentLength = response.expectedContentLength();
@@ -134,7 +139,7 @@
m_connectionID = response.connectionID();
m_connectionReused = response.connectionReused();
m_loadTiming = response.resourceLoadTiming();
- m_cached = response.wasCached();
+ m_cached = m_cached || response.wasCached();
if (!m_cached && m_loadTiming && m_loadTiming->requestTime)
m_responseReceivedTime = m_loadTiming->requestTime + m_loadTiming->receiveHeadersEnd / 1000.0;
« no previous file with comments | « WebCore/inspector/InspectorResource.h ('k') | WebCore/loader/FrameLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698