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

Unified Diff: Source/core/loader/DocumentThreadableLoader.cpp

Issue 360233005: Replace 'ResourceRequest::TargetType' with 'ResourceRequest::RequestContext'. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Uninitialized === crash. :( 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/loader/BeaconLoader.cpp ('k') | Source/core/loader/PingLoader.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..399b8fbd253668283a6cf51a3da5e16bcc3e09e8 100644
--- a/Source/core/loader/DocumentThreadableLoader.cpp
+++ b/Source/core/loader/DocumentThreadableLoader.cpp
@@ -49,6 +49,7 @@
#include "platform/network/ResourceRequest.h"
#include "platform/weborigin/SchemeRegistry.h"
#include "platform/weborigin/SecurityOrigin.h"
+#include "public/platform/WebURLRequest.h"
#include "wtf/Assertions.h"
namespace WebCore {
@@ -424,7 +425,7 @@ void DocumentThreadableLoader::loadRequest(const ResourceRequest& request, Resou
FetchRequest newRequest(request, m_options.initiator, resourceLoaderOptions);
ASSERT(!resource());
- if (request.targetType() == ResourceRequest::TargetIsMedia)
+ if (request.requestContext() == blink::WebURLRequest::RequestContextVideo || request.requestContext() == blink::WebURLRequest::RequestContextAudio)
setResource(m_document.fetcher()->fetchMedia(newRequest));
else
setResource(m_document.fetcher()->fetchRawResource(newRequest));
« no previous file with comments | « Source/core/loader/BeaconLoader.cpp ('k') | Source/core/loader/PingLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698