chromium/third_party/blink/public/mojom/array_buffer/array_buffer_contents.mojom

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

module blink.mojom;

import "mojo/public/mojom/base/big_buffer.mojom";

// Struct which represents the contents of an ArrayBuffer, e.g.
// ArrayBufferContents.
struct SerializedArrayBufferContents {
  mojo_base.mojom.BigBuffer contents;
  // If is_resizable_by_user_javascript is false, then max_byte_length is
  // unused.
  //
  // TODO(crbug.com/657632): Use a wrapped uint64 or uint64? once supported.
  bool is_resizable_by_user_javascript = false;
  uint64 max_byte_length = 0;
};