summaryrefslogtreecommitdiffstats
path: root/extensions/common/api/system_memory.idl
blob: 64af21489034638734a8db6b21229b76b5f97a67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// 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.
    static void getInfo(MemoryInfoCallback callback);
  };
};