blob: b592d8056ed698c3d3e23ecc804d70da875cb295 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// 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.
#ifndef EXTENSIONS_BROWSER_API_SYSTEM_MEMORY_SYSTEM_MEMORY_API_H_
#define EXTENSIONS_BROWSER_API_SYSTEM_MEMORY_SYSTEM_MEMORY_API_H_
#include "extensions/browser/extension_function.h"
#include "extensions/common/api/system_memory.h"
namespace extensions {
class SystemMemoryGetInfoFunction : public AsyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("system.memory.getInfo", SYSTEM_MEMORY_GETINFO)
SystemMemoryGetInfoFunction();
private:
~SystemMemoryGetInfoFunction() override;
bool RunAsync() override;
void OnGetMemoryInfoCompleted(bool success);
};
} // namespace extensions
#endif // EXTENSIONS_BROWSER_API_SYSTEM_MEMORY_SYSTEM_MEMORY_API_H_
|