#include "extensions/common/api/oauth2.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 "tools/json_schema_compiler/manifest_parse_util.h"
#include <string_view>
UTF8ToUTF16;
namespace extensions {
namespace api {
namespace oauth2 {
OAuth2Info::OAuth2Info()
{ … }
OAuth2Info::~OAuth2Info() = default;
OAuth2Info::OAuth2Info(OAuth2Info&& rhs) noexcept = default;
OAuth2Info& OAuth2Info::operator=(OAuth2Info&& rhs) noexcept = default;
constexpr char OAuth2Info::kAutoApprove[];
constexpr char OAuth2Info::kClientId[];
constexpr char OAuth2Info::kScopes[];
OAuth2Info OAuth2Info::Clone() const { … }
bool OAuth2Info::Populate(
const base::Value::Dict& dict, OAuth2Info& out) { … }
bool OAuth2Info::Populate(
const base::Value& value, OAuth2Info& out) { … }
std::optional<OAuth2Info> OAuth2Info::FromValue(const base::Value::Dict& value) { … }
std::optional<OAuth2Info> OAuth2Info::FromValue(const base::Value& value) { … }
base::Value::Dict OAuth2Info::ToValue() const { … }
bool OAuth2Info::ParseFromDictionary(
const base::Value::Dict& root_dict, std::string_view key, OAuth2Info& out, std::u16string& error, std::vector<std::string_view>& error_path_reversed) { … }
ManifestKeys::ManifestKeys()
{ … }
ManifestKeys::~ManifestKeys() = default;
ManifestKeys::ManifestKeys(ManifestKeys&& rhs) noexcept = default;
ManifestKeys& ManifestKeys::operator=(ManifestKeys&& rhs) noexcept = default;
constexpr char ManifestKeys::kOauth2[];
bool ManifestKeys::ParseFromDictionary(
const base::Value::Dict& root_dict, ManifestKeys& out, std::u16string& error) { … }
}
}
}