blob: 91681347ac5345e7a0b473bf74ac3850489a0ed2 [file] [log] [blame]
// Copyright 2025 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
dictionary MemoryInfo {
// The total amount of physical memory capacity, in bytes.
required double capacity;
// The amount of available capacity, in bytes.
required double availableCapacity;
};
// The <code>chrome.system.memory</code> API.
interface Memory {
// Get physical memory information.
// |PromiseValue|: info
[requiredCallback] static Promise<MemoryInfo> getInfo();
};
partial interface System {
static attribute Memory memory;
};
partial interface Browser {
static attribute System system;
};