• Andreas Haas's avatar
    [arraybuffer] Merge ArrayBuffer into DOMArrayBufferBase · 7fc06d62
    Andreas Haas authored
    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: default avatarUlan Degenbaev <ulan@chromium.org>
    Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
    Commit-Queue: Andreas Haas <ahaas@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#750945}
    7fc06d62
dom_websocket.cc 24.4 KB