#include "extensions/common/api/system_memory.h"
#include <memory>
#include <optional>
#include <ostream>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include "base/check.h"
#include "base/check_op.h"
#include "base/notreached.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "tools/json_schema_compiler/util.h"
UTF8ToUTF16;
namespace extensions {
namespace api {
namespace system_memory {
MemoryInfo::MemoryInfo()
: … { … }
MemoryInfo::~MemoryInfo() = default;
MemoryInfo::MemoryInfo(MemoryInfo&& rhs) noexcept = default;
MemoryInfo& MemoryInfo::operator=(MemoryInfo&& rhs) noexcept = default;
MemoryInfo MemoryInfo::Clone() const { … }
bool MemoryInfo::Populate(
const base::Value::Dict& dict, MemoryInfo& out) { … }
bool MemoryInfo::Populate(
const base::Value& value, MemoryInfo& out) { … }
std::optional<MemoryInfo> MemoryInfo::FromValue(const base::Value::Dict& value) { … }
std::optional<MemoryInfo> MemoryInfo::FromValue(const base::Value& value) { … }
base::Value::Dict MemoryInfo::ToValue() const { … }
namespace GetInfo {
base::Value::List Results::Create(const MemoryInfo& info) { … }
}
}
}
}