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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp

Issue 2413233003: DevTools: introduce WI.Resource.contentSize() and WI.Resource.lastModified() (Closed)
Patch Set: add tests Created 4 years, 2 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
Index: third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
index 7d872d61eb4d8e05abb50a7a4fb738d8bfb81eeb..b9ef2145fe9fa9927b078d2e888df139982ee4b8 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
@@ -780,6 +780,8 @@ InspectorPageAgent::buildObjectForFrameTree(LocalFrame* frame) {
.setUrl(urlWithoutFragment(cachedResource->url()).getString())
.setType(cachedResourceTypeJson(*cachedResource))
.setMimeType(cachedResource->response().mimeType())
+ .setLastModified(cachedResource->response().lastModified())
+ .setContentSize(cachedResource->response().decodedBodyLength())
.build();
if (cachedResource->wasCanceled())
resourceObject->setCanceled(true);

Powered by Google App Engine
This is Rietveld 408576698