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

Unified Diff: Source/bindings/modules/v8/custom/V8CryptoCustom.cpp

Issue 606653006: bindings: Adds DOMArrayBuffer, etc. as thin wrappers for ArrayBuffer, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. 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/bindings/modules/v8/custom/V8CryptoCustom.cpp
diff --git a/Source/bindings/modules/v8/custom/V8CryptoCustom.cpp b/Source/bindings/modules/v8/custom/V8CryptoCustom.cpp
index dc461f90b7421bc244880b4130cc4963b4a6be57..0b9d8f1954f191ae277e43810ee53f81b6f141b2 100644
--- a/Source/bindings/modules/v8/custom/V8CryptoCustom.cpp
+++ b/Source/bindings/modules/v8/custom/V8CryptoCustom.cpp
@@ -27,11 +27,10 @@
#include "bindings/core/v8/ExceptionMessages.h"
#include "bindings/core/v8/ExceptionState.h"
+#include "bindings/core/v8/V8ArrayBufferView.h"
#include "bindings/core/v8/V8Binding.h"
-#include "bindings/core/v8/custom/V8ArrayBufferViewCustom.h"
#include "core/dom/ExceptionCode.h"
#include "modules/crypto/Crypto.h"
-#include "wtf/ArrayBufferView.h"
namespace blink {
@@ -48,11 +47,11 @@ void V8Crypto::getRandomValuesMethodCustom(const v8::FunctionCallbackInfo<v8::Va
if (!V8ArrayBufferView::hasInstance(buffer, info.GetIsolate())) {
exceptionState.throwTypeError("First argument is not an ArrayBufferView");
} else {
- ArrayBufferView* arrayBufferView = V8ArrayBufferView::toImpl(v8::Handle<v8::Object>::Cast(buffer));
+ DOMArrayBufferView* arrayBufferView = V8ArrayBufferView::toImpl(v8::Handle<v8::Object>::Cast(buffer));
ASSERT(arrayBufferView);
Crypto* crypto = V8Crypto::toImpl(info.Holder());
- crypto->getRandomValues(arrayBufferView, exceptionState);
+ crypto->getRandomValues(arrayBufferView->view(), exceptionState);
}
if (exceptionState.throwIfNeeded())

Powered by Google App Engine
This is Rietveld 408576698