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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8IteratorResultValue.h

Issue 1506023003: Response construction with a ReadableStream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/bindings/core/v8/V8IteratorResultValue.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8IteratorResultValue.h b/third_party/WebKit/Source/bindings/core/v8/V8IteratorResultValue.h
index b857e574bf34ba8b7952e87897906e79206c5f8b..1133be0cf88b90658aa1e8e066d824e239064082 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8IteratorResultValue.h
+++ b/third_party/WebKit/Source/bindings/core/v8/V8IteratorResultValue.h
@@ -14,6 +14,10 @@ namespace blink {
CORE_EXPORT v8::Local<v8::Object> v8IteratorResultValue(v8::Isolate*, bool done, v8::Local<v8::Value>);
+// Unpacks |item|, stores the value of "done" member to |done| and returns
+// the value of "value" member. Returns an empty handle when errored.
+CORE_EXPORT v8::MaybeLocal<v8::Value> v8IterationItemUnpack(ScriptState*, v8::Local<v8::Object> item, bool* done);
+
template<typename T>
inline ScriptValue v8IteratorResult(ScriptState* scriptState, const T& value)
{

Powered by Google App Engine
This is Rietveld 408576698