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

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, 2 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/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 e297d4f85e55c3cfe7bdb65cc4f4a461eecadda1..e117b1ec8ec3b38fc5e0da0877e7fa13ea3b4184 100644
--- a/third_party/WebKit/Source/modules/fetch/Body.h
+++ b/third_party/WebKit/Source/modules/fetch/Body.h
@@ -39,8 +39,8 @@ public:
virtual BodyStreamBuffer* bodyBuffer() = 0;
virtual const BodyStreamBuffer* bodyBuffer() const = 0;
- bool bodyUsed();
- void setBodyPassed() { m_bodyPassed = true; }
+ virtual bool bodyUsed();
+ bool isBodyLocked();
// ActiveDOMObject override.
bool hasPendingActivity() const override;
@@ -56,7 +56,6 @@ public:
private:
virtual String mimeType() const = 0;
- bool m_bodyPassed;
bool m_opaque;
};

Powered by Google App Engine
This is Rietveld 408576698