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

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

Issue 356723003: Add 'XHR' to the Resource::Type enum, and use it for XHR requests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Preflight. Created 6 years, 6 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 | « Source/core/fetch/ResourceLoaderOptions.h ('k') | Source/core/loader/DocumentThreadableLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorPageAgent.cpp
diff --git a/Source/core/inspector/InspectorPageAgent.cpp b/Source/core/inspector/InspectorPageAgent.cpp
index 7df66fff537faf4b7c98ff3d6454b99637d17882..427ebf9341d7249c11b1d87e107500fc9f5c7dd4 100644
--- a/Source/core/inspector/InspectorPageAgent.cpp
+++ b/Source/core/inspector/InspectorPageAgent.cpp
@@ -250,6 +250,7 @@ bool InspectorPageAgent::cachedResourceContent(Resource* cachedResource, String*
return true;
case Resource::MainResource:
return false;
+ case Resource::XMLHttpRequest:
case Resource::Raw: {
SharedBuffer* buffer = cachedResource->resourceBuffer();
if (!buffer)
@@ -353,6 +354,7 @@ InspectorPageAgent::ResourceType InspectorPageAgent::cachedResourceType(const Re
case Resource::Script:
return InspectorPageAgent::ScriptResource;
case Resource::Raw:
+ case Resource::XMLHttpRequest:
return InspectorPageAgent::XHRResource;
case Resource::ImportResource:
// Fall through.
« no previous file with comments | « Source/core/fetch/ResourceLoaderOptions.h ('k') | Source/core/loader/DocumentThreadableLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698