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

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

Issue 2183323005: Make Resource::m_response private (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/RawResource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/RawResource.cpp b/third_party/WebKit/Source/core/fetch/RawResource.cpp
index d817be79df859cf44bc234d9e9b669e94e9db96a..7727f25d7d8b26c480f914c336382333f6094c67 100644
--- a/third_party/WebKit/Source/core/fetch/RawResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/RawResource.cpp
@@ -115,8 +115,8 @@ void RawResource::didAddClient(ResourceClient* c)
return;
}
- if (!m_response.isNull())
- client->responseReceived(this, m_response, nullptr);
+ if (!response().isNull())
+ client->responseReceived(this, response(), nullptr);
if (!clientWeak || !hasClient(c))
return;
if (m_data)
@@ -153,7 +153,7 @@ void RawResource::responseReceived(const ResourceResponse& response, std::unique
while (RawResourceClient* c = w.next()) {
// |handle| is cleared when passed, but it's not a problem because
// |handle| is null when there are two or more clients, as asserted.
- c->responseReceived(this, m_response, std::move(handle));
+ c->responseReceived(this, this->response(), std::move(handle));
}
// If we successfully revalidated, we won't get appendData() calls.
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ImageResource.cpp ('k') | third_party/WebKit/Source/core/fetch/Resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698