chromium/chromecast/common/mojom/memory_pressure.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 chromecast.mojom;

interface MemoryPressureController {
  AddObserver(pending_remote<MemoryPressureObserver> observer);
};

interface MemoryPressureObserver {
  // Levels defined in base::MemoryPressureListener::MemoryPressureLevel
  MemoryPressureLevelChanged(int32 pressure_level);
};