mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 22:36:09 +03:00
19 lines
570 B
Plaintext
19 lines
570 B
Plaintext
// Copyright 2018 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
module mojo_base.mojom;
|
|
|
|
struct BigBufferSharedMemoryRegion {
|
|
handle<shared_buffer> buffer_handle;
|
|
uint32 size;
|
|
};
|
|
|
|
// A helper union to be used when messages want to accept arbitrarily large
|
|
// chunks of byte data. Beyond a certain size threshold, shared memory will be
|
|
// used in lieu of an inline byte array.
|
|
union BigBuffer {
|
|
array<uint8> bytes;
|
|
BigBufferSharedMemoryRegion shared_memory;
|
|
};
|