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

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

Issue 1899873006: Make Response::body return v8-extra based stream behind flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@notify-locked-released
Patch Set: Created 4 years, 8 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 535f0f91ad99ec27ad5bd6bf137c0c6d83a76736..75998bfcc889d72fbc6f7152af4c3cdac8d22cd8 100644
--- a/third_party/WebKit/Source/modules/fetch/Body.h
+++ b/third_party/WebKit/Source/modules/fetch/Body.h
@@ -9,7 +9,7 @@
#include "bindings/core/v8/ScriptPromise.h"
#include "bindings/core/v8/ScriptValue.h"
#include "bindings/core/v8/ScriptWrappable.h"
-#include "core/dom/ActiveDOMObject.h"
+#include "core/dom/ContextLifecycleObserver.h"
#include "modules/ModulesExport.h"
#include "platform/heap/Handle.h"
#include "wtf/text/WTFString.h"
@@ -32,7 +32,7 @@ class MODULES_EXPORT Body
: public GarbageCollectedFinalized<Body>
, public ScriptWrappable
, public ActiveScriptWrappable
- , public ActiveDOMObject {
+ , public ContextLifecycleObserver {
WTF_MAKE_NONCOPYABLE(Body);
DEFINE_WRAPPERTYPEINFO();
USING_GARBAGE_COLLECTED_MIXIN(Body);
@@ -45,10 +45,9 @@ public:
ScriptPromise formData(ScriptState*);
ScriptPromise json(ScriptState*);
ScriptPromise text(ScriptState*);
- ReadableByteStream* bodyWithUseCounter();
+ ScriptValue bodyWithUseCounter(ScriptState*);
virtual BodyStreamBuffer* bodyBuffer() = 0;
virtual const BodyStreamBuffer* bodyBuffer() const = 0;
- ScriptValue v8ExtraStreamBody(ScriptState*);
virtual bool bodyUsed();
bool isBodyLocked();
@@ -58,11 +57,10 @@ public:
DEFINE_INLINE_VIRTUAL_TRACE()
{
- ActiveDOMObject::trace(visitor);
+ ContextLifecycleObserver::trace(visitor);
}
private:
- ReadableByteStream* body();
virtual String mimeType() const = 0;
// Body consumption algorithms will reject with a TypeError in a number of
« no previous file with comments | « third_party/WebKit/Source/modules/cachestorage/CacheTest.cpp ('k') | third_party/WebKit/Source/modules/fetch/Body.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698