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

Side by Side Diff: Source/core/dom/DOMArrayBuffer.cpp

Issue 1179373004: Add DOMSharedArrayBuffer type (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: merge master Created 5 years, 5 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 unified diff | Download patch
« no previous file with comments | « Source/core/dom/DOMArrayBuffer.h ('k') | Source/core/dom/DOMArrayBufferBase.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/dom/DOMArrayBuffer.h" 6 #include "core/dom/DOMArrayBuffer.h"
7 7
8 #include "bindings/core/v8/DOMDataStore.h" 8 #include "bindings/core/v8/DOMDataStore.h"
9 #include "bindings/core/v8/V8DOMWrapper.h" 9 #include "bindings/core/v8/V8DOMWrapper.h"
10 10
(...skipping 15 matching lines...) Expand all
26 // wrapper already created and associated must be used. 26 // wrapper already created and associated must be used.
27 v8::Local<v8::Object> associatedWrapper = DOMDataStore::getWrapper(this, iso late); 27 v8::Local<v8::Object> associatedWrapper = DOMDataStore::getWrapper(this, iso late);
28 if (UNLIKELY(!associatedWrapper.IsEmpty())) 28 if (UNLIKELY(!associatedWrapper.IsEmpty()))
29 return associatedWrapper; 29 return associatedWrapper;
30 30
31 return associateWithWrapper(isolate, wrapperTypeInfo, wrapper); 31 return associateWithWrapper(isolate, wrapperTypeInfo, wrapper);
32 } 32 }
33 33
34 v8::Local<v8::Object> DOMArrayBuffer::associateWithWrapper(v8::Isolate* isolate, const WrapperTypeInfo* wrapperTypeInfo, v8::Local<v8::Object> wrapper) 34 v8::Local<v8::Object> DOMArrayBuffer::associateWithWrapper(v8::Isolate* isolate, const WrapperTypeInfo* wrapperTypeInfo, v8::Local<v8::Object> wrapper)
35 { 35 {
36 // This function does not set a deallocation observer to the underlying
37 // array buffer. It's a caller's duty.
38
39 return V8DOMWrapper::associateObjectWithWrapper(isolate, this, wrapperTypeIn fo, wrapper); 36 return V8DOMWrapper::associateObjectWithWrapper(isolate, this, wrapperTypeIn fo, wrapper);
40 } 37 }
41 38
42 } // namespace blink 39 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/dom/DOMArrayBuffer.h ('k') | Source/core/dom/DOMArrayBufferBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698