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

Unified Diff: Source/core/fetch/RawResource.cpp

Issue 673243002: Rename Resource::willSendRequest() to willFollowRedirect() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed #4 Created 6 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
« no previous file with comments | « Source/core/fetch/RawResource.h ('k') | Source/core/fetch/Resource.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/RawResource.cpp
diff --git a/Source/core/fetch/RawResource.cpp b/Source/core/fetch/RawResource.cpp
index 38699e8c7313d23e364d0a8e82f94d29051e52b0..ca3ac711c32fdad52e60c73ae97e62fc0f219d37 100644
--- a/Source/core/fetch/RawResource.cpp
+++ b/Source/core/fetch/RawResource.cpp
@@ -75,15 +75,15 @@ void RawResource::didAddClient(ResourceClient* c)
Resource::didAddClient(client);
}
-void RawResource::willSendRequest(ResourceRequest& request, const ResourceResponse& response)
+void RawResource::willFollowRedirect(ResourceRequest& newRequest, const ResourceResponse& redirectResponse)
{
ResourcePtr<RawResource> protect(this);
- if (!response.isNull()) {
+ if (!redirectResponse.isNull()) {
ResourceClientWalker<RawResourceClient> w(m_clients);
while (RawResourceClient* c = w.next())
- c->redirectReceived(this, request, response);
+ c->redirectReceived(this, newRequest, redirectResponse);
}
- Resource::willSendRequest(request, response);
+ Resource::willFollowRedirect(newRequest, redirectResponse);
}
void RawResource::updateRequest(const ResourceRequest& request)
« no previous file with comments | « Source/core/fetch/RawResource.h ('k') | Source/core/fetch/Resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698