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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/TestInterface2OrUint8Array.cpp

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: Created 3 years, 10 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/bindings/tests/results/core/TestInterface2OrUint8Array.cpp
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/TestInterface2OrUint8Array.cpp b/third_party/WebKit/Source/bindings/tests/results/core/TestInterface2OrUint8Array.cpp
index b08950b9c0f9dfeceb9d1fe7be03b5f2395f6d68..491a2d82b4c0585af70521e167b62f9bc0bf781f 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/TestInterface2OrUint8Array.cpp
+++ b/third_party/WebKit/Source/bindings/tests/results/core/TestInterface2OrUint8Array.cpp
@@ -35,18 +35,18 @@ TestInterface2OrUint8Array TestInterface2OrUint8Array::fromTestInterface2(TestIn
return container;
}
-DOMUint8Array* TestInterface2OrUint8Array::getAsUint8Array() const {
+MaybeShared<DOMUint8Array> TestInterface2OrUint8Array::getAsUint8Array() const {
DCHECK(isUint8Array());
return m_uint8Array;
}
-void TestInterface2OrUint8Array::setUint8Array(DOMUint8Array* value) {
+void TestInterface2OrUint8Array::setUint8Array(MaybeShared<DOMUint8Array> value) {
DCHECK(isNull());
m_uint8Array = value;
m_type = SpecificTypeUint8Array;
}
-TestInterface2OrUint8Array TestInterface2OrUint8Array::fromUint8Array(DOMUint8Array* value) {
+TestInterface2OrUint8Array TestInterface2OrUint8Array::fromUint8Array(MaybeShared<DOMUint8Array> value) {
TestInterface2OrUint8Array container;
container.setUint8Array(value);
return container;
@@ -75,7 +75,7 @@ void V8TestInterface2OrUint8Array::toImpl(v8::Isolate* isolate, v8::Local<v8::Va
}
if (v8Value->IsUint8Array()) {
- DOMUint8Array* cppValue = V8Uint8Array::toImpl(v8::Local<v8::Object>::Cast(v8Value));
+ MaybeShared<DOMUint8Array> cppValue = V8Uint8Array::toImpl(v8::Local<v8::Object>::Cast(v8Value));
impl.setUint8Array(cppValue);
return;
}

Powered by Google App Engine
This is Rietveld 408576698