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

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

Issue 1964183004: Revert of Move DOMArrayBuffer, DOMArrayBufferViews and DataView to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/core/streams/ReadableStreamImpl.h
diff --git a/third_party/WebKit/Source/core/streams/ReadableStreamImpl.h b/third_party/WebKit/Source/core/streams/ReadableStreamImpl.h
index 06beb8ddc9a94e0af14791124ae99177b60c1887..aeb47f64770b8769b1b2e235d6dd67eeba97ea2e 100644
--- a/third_party/WebKit/Source/core/streams/ReadableStreamImpl.h
+++ b/third_party/WebKit/Source/core/streams/ReadableStreamImpl.h
@@ -47,26 +47,26 @@
template<>
class ReadableStreamChunkTypeTraits<DOMArrayBuffer> {
public:
- typedef DOMArrayBuffer* HoldType;
- typedef DOMArrayBuffer* PassType;
+ typedef RefPtr<DOMArrayBuffer> HoldType;
+ typedef PassRefPtr<DOMArrayBuffer> PassType;
static size_t size(const PassType& chunk) { return chunk->byteLength(); }
static ScriptValue toScriptValue(ScriptState* scriptState, const HoldType& value)
{
- return ScriptValue(scriptState, toV8(value, scriptState->context()->Global(), scriptState->isolate()));
+ return ScriptValue(scriptState, toV8(value.get(), scriptState->context()->Global(), scriptState->isolate()));
}
};
template<>
class ReadableStreamChunkTypeTraits<DOMArrayBufferView> {
public:
- typedef DOMArrayBufferView* HoldType;
- typedef DOMArrayBufferView* PassType;
+ typedef RefPtr<DOMArrayBufferView> HoldType;
+ typedef PassRefPtr<DOMArrayBufferView> PassType;
static size_t size(const PassType& chunk) { return chunk->byteLength(); }
static ScriptValue toScriptValue(ScriptState* scriptState, const HoldType& value)
{
- return ScriptValue(scriptState, toV8(value, scriptState->context()->Global(), scriptState->isolate()));
+ return ScriptValue(scriptState, toV8(value.get(), scriptState->context()->Global(), scriptState->isolate()));
}
};
« no previous file with comments | « third_party/WebKit/Source/core/loader/BeaconLoader.cpp ('k') | third_party/WebKit/Source/core/testing/Internals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698