[arraybuffer] Merge ArrayBuffer into DOMArrayBufferBase
With this CL the ArrayBuffer class gets finally removed and completely merged into DOMArrayBufferBase. This required the following changes: * Move the internal fields of ArrayBuffer to DOMArrayBufferBase: array_buffer_contents_ and is_detached_. * Change DOMArrayBufferBase to be based on ArrayBufferContents instead of ArrayBuffer now. * Change the constructors of DOMArrayBuffer and SharedDOMArrayBuffer. * Move the implementation of ArrayBuffer::Transfer to DOMArrayBuffer. * Make ArrayBufferContents copyable. As ArrayBufferContents is just a wrapper around an std::shared_ptr, this is fine. * Add a Detach function to DOMArrayBufferBase which allows to set the is_detached_ flag. R=haraken@chromium.org, ulan@chromium.org Bug: chromium:1008840 Change-Id: I2355ce0a38cf0453af2960b03e7a984dc002d1c8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2106058Reviewed-by:Ulan Degenbaev <ulan@chromium.org> Reviewed-by:
Kentaro Hara <haraken@chromium.org> Commit-Queue: Andreas Haas <ahaas@chromium.org> Cr-Commit-Position: refs/heads/master@{#750945}
Showing
Please register or sign in to comment