[arraybuffer] Organize views in a hash_set
This is a first step of getting rid of blink::ArrayBuffer. blink::ArrayBuffer serves two purposes by now: 1) Managing a list of ArrayBufferViews; 2) Managing the detached flag; With this CL I encapsulate the list of ArrayBufferViews. In follow-up CLs I then want to pass the list and an ArrayBufferContents object to the ArrayBufferView instead of the ArrayBuffer object. This will bring us one step closer to removing blink::ArrayBuffer. Update: ArrayBuffer seems to be very involved. It is the connecting data structure between DOMArrayBuffer, ArrayBufferContents, and ArrayBufferView. Even though it is not used anymore outside these classes, it is not obvious if we can replace it within these classes. I still think that refactoring the organization of views here is good. R=haraken@chromium.org Bug: chromium:1008840 Change-Id: I533f5496b7c51312e77a0138ac8249f9f0e55ffd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1911207Reviewed-by:Kentaro Hara <haraken@chromium.org> Commit-Queue: Andreas Haas <ahaas@chromium.org> Cr-Commit-Position: refs/heads/master@{#714880}
Showing
Please register or sign in to comment