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

Unified Diff: Source/core/xml/XSLTProcessorLibxslt.cpp

Issue 1170503003: Remove resource type-specific fetching logic from ResourceFetcher (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
Index: Source/core/xml/XSLTProcessorLibxslt.cpp
diff --git a/Source/core/xml/XSLTProcessorLibxslt.cpp b/Source/core/xml/XSLTProcessorLibxslt.cpp
index fb2e286a9c8afd0c90315bee9ceaf02ecd71ea3f..ce9a476bf16ffe87a8b49fd9d188826370d9cc04 100644
--- a/Source/core/xml/XSLTProcessorLibxslt.cpp
+++ b/Source/core/xml/XSLTProcessorLibxslt.cpp
@@ -27,6 +27,7 @@
#include "core/dom/TransformSource.h"
#include "core/editing/markup.h"
#include "core/fetch/FetchInitiatorTypeNames.h"
+#include "core/fetch/RawResource.h"
#include "core/fetch/Resource.h"
#include "core/fetch/ResourceFetcher.h"
#include "core/frame/FrameConsole.h"
@@ -102,7 +103,7 @@ static xmlDocPtr docLoaderFunc(
ResourceLoaderOptions fetchOptions(ResourceFetcher::defaultResourceOptions());
FetchRequest request(ResourceRequest(url), FetchInitiatorTypeNames::xml, fetchOptions);
request.setOriginRestriction(FetchRequest::RestrictToSameOrigin);
- ResourcePtr<Resource> resource = globalResourceFetcher->fetchSynchronously(request);
+ ResourcePtr<Resource> resource = RawResource::fetchSynchronously(request, globalResourceFetcher);
if (!resource || !globalProcessor)
return 0;

Powered by Google App Engine
This is Rietveld 408576698