Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / wtf / ArrayBuffer.h
index e2e1745..1d509f8 100644 (file)
@@ -62,14 +62,23 @@ public:
     bool transfer(ArrayBufferContents&);
     bool isNeutered() { return m_isNeutered; }
 
-    void setDeallocationObserver(ArrayBufferDeallocationObserver* observer) { m_contents.setDeallocationObserver(observer); }
+    void setDeallocationObserver(ArrayBufferDeallocationObserver* observer)
+    {
+        m_contents.setDeallocationObserver(observer);
+    }
+    void setDeallocationObserverWithoutAllocationNotification(ArrayBufferDeallocationObserver* observer)
+    {
+        m_contents.setDeallocationObserverWithoutAllocationNotification(observer);
+    }
 
     ~ArrayBuffer() { }
 
+protected:
+    inline explicit ArrayBuffer(ArrayBufferContents&);
+
 private:
     static inline PassRefPtr<ArrayBuffer> create(unsigned numElements, unsigned elementByteSize, ArrayBufferContents::InitializationPolicy);
 
-    inline ArrayBuffer(ArrayBufferContents&);
     inline PassRefPtr<ArrayBuffer> sliceImpl(unsigned begin, unsigned end) const;
     inline unsigned clampIndex(int index) const;
     static inline int clampValue(int x, int left, int right);