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

Unified Diff: Source/modules/fetch/Body.h

Issue 1049983003: [Fetch] Body consume function should not set bodyUsed flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@stream-clone
Patch Set: Created 5 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
« no previous file with comments | « LayoutTests/http/tests/fetch/script-tests/response-content.js ('k') | Source/modules/fetch/Body.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/fetch/Body.h
diff --git a/Source/modules/fetch/Body.h b/Source/modules/fetch/Body.h
index 3751b7fe5034bdc8472e59b6d508763ce3de708a..4c988a92d3814f6b0902363fd2e5b1e11584ba22 100644
--- a/Source/modules/fetch/Body.h
+++ b/Source/modules/fetch/Body.h
@@ -56,7 +56,8 @@ public:
bool bodyUsed() const;
void lockBody(LockBodyOption = LockBodyOptionNone);
- bool streamAccessed() const;
+ // Returns true if the body stream is (possibly partially) consumed.
+ bool isBodyConsumed() const;
void refreshBody();
// Creates a new BodyStreamBuffer to drain the data from the ReadableStream.
« no previous file with comments | « LayoutTests/http/tests/fetch/script-tests/response-content.js ('k') | Source/modules/fetch/Body.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698