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

Unified Diff: Source/core/streams/ReadableStreamImpl.h

Issue 606653006: bindings: Adds DOMArrayBuffer, etc. as thin wrappers for ArrayBuffer, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed Win GPU tests (DOMDataView). Created 6 years, 2 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: Source/core/streams/ReadableStreamImpl.h
diff --git a/Source/core/streams/ReadableStreamImpl.h b/Source/core/streams/ReadableStreamImpl.h
index b6060b42b0ea2d244274880ae7143a2a4d041bcb..3915db1dae673d8087238bf19e174ace6abf61b7 100644
--- a/Source/core/streams/ReadableStreamImpl.h
+++ b/Source/core/streams/ReadableStreamImpl.h
@@ -9,11 +9,9 @@
#include "bindings/core/v8/ScriptState.h"
#include "bindings/core/v8/ScriptValue.h"
#include "bindings/core/v8/V8Binding.h"
+#include "core/dom/DOMArrayBuffer.h"
#include "core/streams/ReadableStream.h"
-#include "wtf/ArrayBuffer.h"
#include "wtf/Deque.h"
-#include "wtf/Forward.h"
-#include "wtf/OwnPtr.h"
#include "wtf/RefPtr.h"
#include "wtf/text/WTFString.h"
@@ -37,10 +35,10 @@ public:
};
template<>
-class ReadableStreamChunkTypeTraits<ArrayBuffer> {
+class ReadableStreamChunkTypeTraits<DOMArrayBuffer> {
public:
- typedef RefPtr<ArrayBuffer> HoldType;
- typedef PassRefPtr<ArrayBuffer> PassType;
+ typedef RefPtr<DOMArrayBuffer> HoldType;
+ typedef PassRefPtr<DOMArrayBuffer> PassType;
static size_t size(const PassType& value) { return value->byteLength(); }
static size_t size(const HoldType& value) { return value->byteLength(); }
@@ -112,4 +110,3 @@ ScriptValue ReadableStreamImpl<ChunkTypeTraits>::read(ScriptState* scriptState,
} // namespace blink
#endif // ReadableStreamImpl_h
-

Powered by Google App Engine
This is Rietveld 408576698