Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Move consume promise from FetchBody to FetchBodyConsumer
https://bugs.webkit.org/show_bug.cgi?id=176121 Patch by Youenn Fablet <youenn@apple.com> on 2017-08-31 Reviewed by Alex Christensen. No change of behavior. FetchBodyConsumer should be made responsible for data consumption through promise getters and ReadableStream. This will allow making data consumption consistent for Request and Response. This patch is doing the first step. * Modules/fetch/FetchBody.cpp: (WebCore::FetchBody::consumeOnceLoadingFinished): (WebCore::FetchBody::consumeBlob): (WebCore::FetchBody::loadingFailed): (WebCore::FetchBody::loadingSucceeded): (WebCore::FetchBody::clone const): * Modules/fetch/FetchBody.h: (WebCore::FetchBody::cleanConsumer): (WebCore::FetchBody::cleanConsumePromise): Deleted. * Modules/fetch/FetchBodyConsumer.cpp: (WebCore::FetchBodyConsumer::setConsumePromise): (WebCore::FetchBodyConsumer::loadingFailed): (WebCore::FetchBodyConsumer::loadingSucceeded): (WebCore::FetchBodyConsumer::clean): * Modules/fetch/FetchBodyConsumer.h: (WebCore::FetchBodyConsumer::clean): Deleted. * Modules/fetch/FetchBodyOwner.cpp: (WebCore::FetchBodyOwner::stop): Canonical link: https://commits.webkit.org/192829@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@221427 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
71 additions
and 13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters