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

Unified Diff: third_party/WebKit/Source/core/fetch/Resource.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/fetch/Resource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/Resource.cpp b/third_party/WebKit/Source/core/fetch/Resource.cpp
index 2f31ccdcf511baaefd669bfbc6c789223d69428f..932a38e5481f5917c7368b44d0b1b5394b12628c 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.cpp
+++ b/third_party/WebKit/Source/core/fetch/Resource.cpp
@@ -549,11 +549,12 @@ void Resource::setRevalidatingRequest(const ResourceRequest& request) {
m_status = NotStarted;
}
-void Resource::willFollowRedirect(ResourceRequest& newRequest,
+bool Resource::willFollowRedirect(const ResourceRequest& newRequest,
const ResourceResponse& redirectResponse) {
if (m_isRevalidating)
revalidationFailed();
m_redirectChain.append(RedirectPair(newRequest, redirectResponse));
+ return true;
}
void Resource::setResponse(const ResourceResponse& response) {
« no previous file with comments | « third_party/WebKit/Source/core/fetch/Resource.h ('k') | third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698