chromium/third_party/blink/public/mojom/crash/crash_memory_metrics_reporter.mojom

// Copyright 2018 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/shared_memory.mojom";

// Renderer side interface for CrashMemoryMetricsReporter.
interface CrashMemoryMetricsReporter {
  // This method is called by the browser process, and sets shared memory that
  // will be filled with renderer memory metrics and will be reported back to
  // the browser process.
  // TODO(crbug.com/873076): Use WritableSharedMemoryRegion when it's possible.
  SetSharedMemory(mojo_base.mojom.UnsafeSharedMemoryRegion shared_metrics_buffer);
};