summaryrefslogtreecommitdiffstats
path: root/gin/array_buffer.h
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-27 03:38:26 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-27 03:38:26 +0000
commit7618ebbb8685c7bb6d1477791c524d667cae2f70 (patch)
tree4ae52faf34f9b2afd83cb81ceb6ef60a3db66e93 /gin/array_buffer.h
parent2ff0a25baaf6a542fadd4cfd32589476b8eba3b0 (diff)
downloadchromium_src-7618ebbb8685c7bb6d1477791c524d667cae2f70.zip
chromium_src-7618ebbb8685c7bb6d1477791c524d667cae2f70.tar.gz
chromium_src-7618ebbb8685c7bb6d1477791c524d667cae2f70.tar.bz2
Convert the rest of the functions in core.cc to use CreateFunctionTemplate.
BUG= Review URL: https://codereview.chromium.org/89723002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237492 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gin/array_buffer.h')
-rw-r--r--gin/array_buffer.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/gin/array_buffer.h b/gin/array_buffer.h
index 30d45f9..3169fd0 100644
--- a/gin/array_buffer.h
+++ b/gin/array_buffer.h
@@ -24,6 +24,7 @@ class ArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
class ArrayBuffer {
public:
+ ArrayBuffer();
explicit ArrayBuffer(v8::Isolate* isolate);
ArrayBuffer(v8::Isolate* isolate, v8::Handle<v8::ArrayBuffer> buffer);
~ArrayBuffer();
@@ -31,26 +32,25 @@ class ArrayBuffer {
void* bytes() const { return bytes_; }
size_t num_bytes() const { return num_bytes_; }
- v8::Isolate* isolate() const { return isolate_; }
-
private:
class Private;
- v8::Isolate* isolate_;
scoped_refptr<Private> private_;
void* bytes_;
size_t num_bytes_;
+
+ DISALLOW_COPY(ArrayBuffer);
};
template<>
struct Converter<ArrayBuffer> {
- static bool FromV8(v8::Handle<v8::Value> val,
+ static bool FromV8(v8::Isolate* isolate, v8::Handle<v8::Value> val,
ArrayBuffer* out);
};
class ArrayBufferView {
public:
- explicit ArrayBufferView(v8::Isolate* isolate);
+ ArrayBufferView();
ArrayBufferView(v8::Isolate* isolate, v8::Handle<v8::ArrayBufferView> view);
~ArrayBufferView();
@@ -59,17 +59,17 @@ class ArrayBufferView {
}
size_t num_bytes() const { return num_bytes_; }
- v8::Isolate* isolate() const { return array_buffer_.isolate(); }
-
private:
ArrayBuffer array_buffer_;
size_t offset_;
size_t num_bytes_;
+
+ DISALLOW_COPY(ArrayBufferView);
};
template<>
struct Converter<ArrayBufferView> {
- static bool FromV8(v8::Handle<v8::Value> val,
+ static bool FromV8(v8::Isolate* isolate, v8::Handle<v8::Value> val,
ArrayBufferView* out);
};