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

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

Issue 2413233003: DevTools: introduce WI.Resource.contentSize() and WI.Resource.lastModified() (Closed)
Patch Set: always send last-modified in php script 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 b44d350f39ba4ae2277bd6d6a3f16a46a5e67da1..0e9e59125c415510332b050f0fc3e2f23be002ac 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
@@ -781,6 +781,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