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

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

Issue 1710733002: Move multipart resource handling to core/fetch (2/2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@multipart-cleanup
Patch Set: Created 4 years, 9 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 d804be566ea13d9688d2afdefe438764ece3d30a..dbb8562fdd1443bd6c9ea20ac00e11804238bca3 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.cpp
+++ b/third_party/WebKit/Source/core/fetch/Resource.cpp
@@ -297,17 +297,11 @@ void Resource::error(Resource::Status status)
markClientsFinished();
}
-void Resource::finishOnePart()
-{
- setLoading(false);
- checkNotify();
-}
-
void Resource::finish()
{
ASSERT(m_revalidatingRequest.isNull());
- ASSERT(!errorOccurred());
- finishOnePart();
+ setLoading(false);
+ checkNotify();
markClientsFinished();
if (!errorOccurred())
m_status = Cached;
@@ -457,7 +451,6 @@ void Resource::responseReceived(const ResourceResponse& response, PassOwnPtr<Web
}
revalidationFailed();
}
-
setResponse(response);
String encoding = response.textEncodingName();
if (!encoding.isNull())
« no previous file with comments | « third_party/WebKit/Source/core/fetch/Resource.h ('k') | third_party/WebKit/Source/core/fetch/ResourceLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698