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

Unified Diff: third_party/WebKit/Source/core/loader/TextTrackLoader.cpp

Issue 2230173002: Change WebURLLoaderClient::willFollowRedirect() API to return bool (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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/loader/TextTrackLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/TextTrackLoader.cpp b/third_party/WebKit/Source/core/loader/TextTrackLoader.cpp
index 9ae00786ba700166b4253c12b6171dde7fd7cd2b..05bb3c939a9ae0c9b32cd62d8510d7ac323bce4f 100644
--- a/third_party/WebKit/Source/core/loader/TextTrackLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/TextTrackLoader.cpp
@@ -62,18 +62,19 @@ void TextTrackLoader::cancelLoad() {
clearResource();
}
-void TextTrackLoader::redirectReceived(Resource* resource,
- ResourceRequest& request,
+bool TextTrackLoader::redirectReceived(Resource* resource,
+ const ResourceRequest& request,
const ResourceResponse&) {
DCHECK_EQ(this->resource(), resource);
if (resource->options().corsEnabled == IsCORSEnabled ||
document().getSecurityOrigin()->canRequestNoSuborigin(request.url()))
- return;
+ return true;
corsPolicyPreventedLoad(document().getSecurityOrigin(), request.url());
if (!m_cueLoadTimer.isActive())
m_cueLoadTimer.startOneShot(0, BLINK_FROM_HERE);
clearResource();
+ return false;
}
void TextTrackLoader::dataReceived(Resource* resource,

Powered by Google App Engine
This is Rietveld 408576698