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

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

Issue 2704443007: Count Response construction with ReadableStream (Closed)
Patch Set: fix Created 3 years, 10 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.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/Body.cpp b/third_party/WebKit/Source/modules/fetch/Body.cpp
index b168fb3c8fdd831a2ede69403122a145537d990e..909d9600928f25e21ddf21335078b5dd80c425e2 100644
--- a/third_party/WebKit/Source/modules/fetch/Body.cpp
+++ b/third_party/WebKit/Source/modules/fetch/Body.cpp
@@ -11,7 +11,6 @@
#include "core/dom/DOMArrayBuffer.h"
#include "core/dom/DOMTypedArray.h"
#include "core/fileapi/Blob.h"
-#include "core/frame/UseCounter.h"
#include "modules/fetch/BodyStreamBuffer.h"
#include "modules/fetch/FetchDataLoader.h"
#include "public/platform/WebDataConsumerHandle.h"
@@ -199,8 +198,7 @@ ScriptPromise Body::text(ScriptState* scriptState) {
return promise;
}
-ScriptValue Body::bodyWithUseCounter(ScriptState* scriptState) {
- UseCounter::count(getExecutionContext(), UseCounter::FetchBodyStream);
+ScriptValue Body::body(ScriptState* scriptState) {
if (!bodyBuffer())
return ScriptValue::createNull(scriptState);
ScriptValue stream = bodyBuffer()->stream();
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/Body.h ('k') | third_party/WebKit/Source/modules/fetch/Response.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698