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

Unified Diff: Source/core/testing/ReadableStreamTestRequest.h

Issue 1167343002: Add methods for creating V8 extras-based ReadableStreams from C++ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: That todo is not necessary according to yhirano@ Created 5 years, 5 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
« no previous file with comments | « Source/core/testing/ReadableStreamTestCase.idl ('k') | Source/core/testing/ReadableStreamTestRequest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/ReadableStreamTestRequest.h
diff --git a/Source/core/testing/ReadableStreamTestRequest.h b/Source/core/testing/ReadableStreamTestRequest.h
new file mode 100644
index 0000000000000000000000000000000000000000..f5315732ee711d7386d5c494887566eb449733c8
--- /dev/null
+++ b/Source/core/testing/ReadableStreamTestRequest.h
@@ -0,0 +1,31 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ReadableStreamTestRequest_h
+#define ReadableStreamTestRequest_h
+
+#include "bindings/core/v8/ScriptState.h"
+#include "bindings/core/v8/ScriptValue.h"
+#include "bindings/core/v8/ScriptWrappable.h"
+#include "platform/heap/Handle.h"
+
+namespace blink {
+
+class UnderlyingSourceBase;
+
+class ReadableStreamTestRequest final : public GarbageCollected<ReadableStreamTestRequest>, public ScriptWrappable {
+ DEFINE_WRAPPERTYPEINFO();
+
+public:
+ DEFINE_INLINE_TRACE() { }
+
+ ReadableStreamTestRequest(ScriptState*, UnderlyingSourceBase*);
+
+ const char* metadata() { return "some metadata"; }
+ ScriptValue body(ScriptState*);
+};
+
+} // namespace blink
+
+#endif // ReadableStreamTestRequest_h
« no previous file with comments | « Source/core/testing/ReadableStreamTestCase.idl ('k') | Source/core/testing/ReadableStreamTestRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698