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

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..739ad0ad19ef1165669005adcf7c81bad9afd9a4 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8IteratorResultValue.h
+++ b/third_party/WebKit/Source/bindings/core/v8/V8IteratorResultValue.h
@@ -12,8 +12,15 @@
namespace blink {
+// "Iterator result" in this file is an object returned from iterator.next()
+// having two members "done" and "value".
+
CORE_EXPORT v8::Local<v8::Object> v8IteratorResultValue(v8::Isolate*, bool done, v8::Local<v8::Value>);
+// Unpacks |result|, 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> v8UnpackIteratorResult(ScriptState*, v8::Local<v8::Object> result, bool* done);
+
template<typename T>
inline ScriptValue v8IteratorResult(ScriptState* scriptState, const T& value)
{

Powered by Google App Engine
This is Rietveld 408576698