chromium/components/paint_preview/common/mojom/paint_preview_types.mojom

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

module paint_preview.mojom;

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

// Corresponds to |paint_preview::RecordingPersistence| in
// components/paint_preview/common/serialized_recording.h
enum RecordingPersistence {
  kFileSystem,
  kMemoryBuffer,
};

// Corresponds to |paint_preview::SerializedRecording| in
// components/paint_preview/common/serialized_recording.h
union SerializedRecording {
  mojo_base.mojom.File file;
  mojo_base.mojom.BigBuffer buffer;
};