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

Unified Diff: Source/core/loader/DocumentThreadableLoader.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/inspector/InspectorPageAgent.cpp ('k') | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/DocumentThreadableLoader.cpp
diff --git a/Source/core/loader/DocumentThreadableLoader.cpp b/Source/core/loader/DocumentThreadableLoader.cpp
index 9178bf34ce1c40e379cd2c719ee9164ed9f858f8..53caa64a8167f4b2bb3e127c23da1cb40c9a44e2 100644
--- a/Source/core/loader/DocumentThreadableLoader.cpp
+++ b/Source/core/loader/DocumentThreadableLoader.cpp
@@ -426,6 +426,8 @@ void DocumentThreadableLoader::loadRequest(const ResourceRequest& request, Resou
ASSERT(!resource());
if (request.targetType() == ResourceRequest::TargetIsMedia)
setResource(m_document.fetcher()->fetchMedia(newRequest));
+ else if (request.targetType() == ResourceRequest::TargetIsXHR)
+ setResource(m_document.fetcher()->fetchXMLHttpRequest(newRequest));
else
setResource(m_document.fetcher()->fetchRawResource(newRequest));
if (resource() && resource()->loader()) {
« no previous file with comments | « Source/core/inspector/InspectorPageAgent.cpp ('k') | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698