blob: e4ffe8eaf380b44c2369000f66cc4fd8011d5f59 [file] [log] [blame]
// Copyright 2017 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 content.mojom;
// This struct represents a message as it is sent across a MessagePort. A
// MessagePort itself is represented as a raw mojo message pipe, and messages
// on it are (in both directions) serialized versions of this struct.
struct MessagePortMessage {
// The actual message data, as encoded by blink::SerializedScriptValue.
array<uint8> encoded_message;
// Any ports being transfered as part of this message.
array<handle<message_pipe>> ports;