#include "extensions/common/api/storage.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"
#include <string_view>
UTF8ToUTF16;
namespace extensions {
namespace api {
namespace storage {
namespace sync {
const int QUOTA_BYTES = …;
const int QUOTA_BYTES_PER_ITEM = …;
const int MAX_ITEMS = …;
const int MAX_WRITE_OPERATIONS_PER_HOUR = …;
const int MAX_WRITE_OPERATIONS_PER_MINUTE = …;
const int MAX_SUSTAINED_WRITE_OPERATIONS_PER_MINUTE = …;
}
namespace local {
const int QUOTA_BYTES = …;
}
namespace session {
const int QUOTA_BYTES = …;
}
const char* ToString(AccessLevel enum_param) { … }
AccessLevel ParseAccessLevel(std::string_view enum_string) { … }
std::u16string GetAccessLevelParseError(std::string_view enum_string) { … }
StorageChange::StorageChange()
{ … }
StorageChange::~StorageChange() = default;
StorageChange::StorageChange(StorageChange&& rhs) noexcept = default;
StorageChange& StorageChange::operator=(StorageChange&& rhs) noexcept = default;
StorageChange StorageChange::Clone() const { … }
bool StorageChange::Populate(
const base::Value::Dict& dict, StorageChange& out) { … }
bool StorageChange::Populate(
const base::Value& value, StorageChange& out) { … }
std::optional<StorageChange> StorageChange::FromValue(const base::Value::Dict& value) { … }
std::optional<StorageChange> StorageChange::FromValue(const base::Value& value) { … }
base::Value::Dict StorageChange::ToValue() const { … }
namespace StorageArea {
namespace Get {
Params::Keys::Object::Object()
{ … }
Params::Keys::Object::~Object() = default;
Params::Keys::Object::Object(Object&& rhs) noexcept = default;
Params::Keys::Object& Params::Keys::Object::operator=(Object&& rhs) noexcept = default;
Params::Keys::Object Params::Keys::Object::Clone() const { … }
bool Params::Keys::Object::Populate(
const base::Value::Dict& dict, Object& out) { … }
bool Params::Keys::Object::Populate(
const base::Value& value, Object& out) { … }
std::optional<Params::Keys::Object> Params::Keys::Object::FromValue(const base::Value::Dict& value) { … }
std::optional<Params::Keys::Object> Params::Keys::Object::FromValue(const base::Value& value) { … }
Params::Keys::Keys()
{ … }
Params::Keys::~Keys() = default;
Params::Keys::Keys(Keys&& rhs) noexcept = default;
Params::Keys& Params::Keys::operator=(Keys&& rhs) noexcept = default;
Params::Keys Params::Keys::Clone() const { … }
bool Params::Keys::Populate(
const base::Value& value, Keys& out) { … }
std::optional<Params::Keys> Params::Keys::FromValue(const base::Value& value) { … }
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
Results::Items::Items()
{ … }
Results::Items::~Items() = default;
Results::Items::Items(Items&& rhs) noexcept = default;
Results::Items& Results::Items::operator=(Items&& rhs) noexcept = default;
base::Value::Dict Results::Items::ToValue() const { … }
base::Value::List Results::Create(const Items& items) { … }
}
namespace GetKeys {
base::Value::List Results::Create(const std::vector<std::string>& keys) { … }
}
namespace GetBytesInUse {
Params::Keys::Keys()
{ … }
Params::Keys::~Keys() = default;
Params::Keys::Keys(Keys&& rhs) noexcept = default;
Params::Keys& Params::Keys::operator=(Keys&& rhs) noexcept = default;
Params::Keys Params::Keys::Clone() const { … }
bool Params::Keys::Populate(
const base::Value& value, Keys& out) { … }
std::optional<Params::Keys> Params::Keys::FromValue(const base::Value& value) { … }
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
base::Value::List Results::Create(double bytes_in_use) { … }
}
namespace Set {
Params::Items::Items()
{ … }
Params::Items::~Items() = default;
Params::Items::Items(Items&& rhs) noexcept = default;
Params::Items& Params::Items::operator=(Items&& rhs) noexcept = default;
Params::Items Params::Items::Clone() const { … }
bool Params::Items::Populate(
const base::Value::Dict& dict, Items& out) { … }
bool Params::Items::Populate(
const base::Value& value, Items& out) { … }
std::optional<Params::Items> Params::Items::FromValue(const base::Value::Dict& value) { … }
std::optional<Params::Items> Params::Items::FromValue(const base::Value& value) { … }
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
base::Value::List Results::Create() { … }
}
namespace Remove {
Params::Keys::Keys()
{ … }
Params::Keys::~Keys() = default;
Params::Keys::Keys(Keys&& rhs) noexcept = default;
Params::Keys& Params::Keys::operator=(Keys&& rhs) noexcept = default;
Params::Keys Params::Keys::Clone() const { … }
bool Params::Keys::Populate(
const base::Value& value, Keys& out) { … }
std::optional<Params::Keys> Params::Keys::FromValue(const base::Value& value) { … }
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
base::Value::List Results::Create() { … }
}
namespace Clear {
base::Value::List Results::Create() { … }
}
namespace SetAccessLevel {
Params::AccessOptions::AccessOptions()
: … { … }
Params::AccessOptions::~AccessOptions() = default;
Params::AccessOptions::AccessOptions(AccessOptions&& rhs) noexcept = default;
Params::AccessOptions& Params::AccessOptions::operator=(AccessOptions&& rhs) noexcept = default;
Params::AccessOptions Params::AccessOptions::Clone() const { … }
bool Params::AccessOptions::Populate(
const base::Value::Dict& dict, AccessOptions& out) { … }
bool Params::AccessOptions::Populate(
const base::Value& value, AccessOptions& out) { … }
std::optional<Params::AccessOptions> Params::AccessOptions::FromValue(const base::Value::Dict& value) { … }
std::optional<Params::AccessOptions> Params::AccessOptions::FromValue(const base::Value& value) { … }
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
base::Value::List Results::Create() { … }
}
}
namespace OnChanged {
const char kEventName[] = …;
Changes::Changes()
{ … }
Changes::~Changes() = default;
Changes::Changes(Changes&& rhs) noexcept = default;
Changes& Changes::operator=(Changes&& rhs) noexcept = default;
base::Value::Dict Changes::ToValue() const { … }
base::Value::List Create(const Changes& changes, const std::string& area_name) { … }
}
}
}
}