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

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

Issue 1418813004: [Fetch API] Reflect spec changes of bodyUsed property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/modules/fetch/Body.h
diff --git a/third_party/WebKit/Source/modules/fetch/Body.h b/third_party/WebKit/Source/modules/fetch/Body.h
index 1e9ee5374eb14ee5d5a8cdba5b51b8c763dc7da7..16972505f5ad2e935a97f730ff9f83d6e5413b07 100644
--- a/third_party/WebKit/Source/modules/fetch/Body.h
+++ b/third_party/WebKit/Source/modules/fetch/Body.h
@@ -35,12 +35,12 @@ public:
ScriptPromise formData(ScriptState*);
ScriptPromise json(ScriptState*);
ScriptPromise text(ScriptState*);
- ReadableByteStream* body();
+ ReadableByteStream* bodyWithUseCounter();
virtual BodyStreamBuffer* bodyBuffer() = 0;
virtual const BodyStreamBuffer* bodyBuffer() const = 0;
- bool bodyUsed();
- void setBodyPassed() { m_bodyPassed = true; }
+ virtual bool bodyUsed();
+ bool isBodyLocked();
hiroshige 2015/11/19 12:50:36 In the Fetch spec, |locked| is only defined for Re
yhirano 2015/11/19 13:19:03 It's OK, I'm introducing it right now[1] and it do
// ActiveDOMObject override.
bool hasPendingActivity() const override;
@@ -51,9 +51,10 @@ public:
}
private:
+ ReadableByteStream* body();
virtual String mimeType() const = 0;
- bool m_bodyPassed;
+ bool m_opaque;
hiroshige 2015/11/19 12:50:36 Seems not used and thus we can delete m_opaque.
yhirano 2015/11/19 13:19:03 Sorry, it's a rebase error. Fixed.
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698