blob: 45256a7cdc73218908b4bffc5c7a3ec2f750e04a [file] [log] [blame]
// Copyright 2013 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.
// The <code>chrome.system.memory</code> API.
namespace system.memory {
dictionary MemoryInfo {
// The total amount of physical memory capacity, in bytes.
double capacity;
// The amount of available capacity, in bytes.
double availableCapacity;
};
callback MemoryInfoCallback = void (MemoryInfo info);
interface Functions {
// Get physical memory information.
[supportsPromises] static void getInfo(MemoryInfoCallback callback);
};
};