#include "chrome/common/extensions/api/gcm.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 gcm {
const int MAX_MESSAGE_SIZE = …;
namespace Register {
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(const std::string& registration_id) { … }
}
namespace Unregister {
base::Value::List Results::Create() { … }
}
namespace Send {
Params::Message::Data::Data()
{ … }
Params::Message::Data::~Data() = default;
Params::Message::Data::Data(Data&& rhs) noexcept = default;
Params::Message::Data& Params::Message::Data::operator=(Data&& rhs) noexcept = default;
Params::Message::Data Params::Message::Data::Clone() const { … }
bool Params::Message::Data::Populate(
const base::Value::Dict& dict, Data& out) { … }
bool Params::Message::Data::Populate(
const base::Value& value, Data& out) { … }
std::optional<Params::Message::Data> Params::Message::Data::FromValue(const base::Value::Dict& value) { … }
std::optional<Params::Message::Data> Params::Message::Data::FromValue(const base::Value& value) { … }
Params::Message::Message()
{ … }
Params::Message::~Message() = default;
Params::Message::Message(Message&& rhs) noexcept = default;
Params::Message& Params::Message::operator=(Message&& rhs) noexcept = default;
Params::Message Params::Message::Clone() const { … }
bool Params::Message::Populate(
const base::Value::Dict& dict, Message& out) { … }
bool Params::Message::Populate(
const base::Value& value, Message& out) { … }
std::optional<Params::Message> Params::Message::FromValue(const base::Value::Dict& value) { … }
std::optional<Params::Message> Params::Message::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(const std::string& message_id) { … }
}
namespace OnMessage {
const char kEventName[] = …;
Message::Data::Data()
{ … }
Message::Data::~Data() = default;
Message::Data::Data(Data&& rhs) noexcept = default;
Message::Data& Message::Data::operator=(Data&& rhs) noexcept = default;
base::Value::Dict Message::Data::ToValue() const { … }
Message::Message()
{ … }
Message::~Message() = default;
Message::Message(Message&& rhs) noexcept = default;
Message& Message::operator=(Message&& rhs) noexcept = default;
base::Value::Dict Message::ToValue() const { … }
base::Value::List Create(const Message& message) { … }
}
namespace OnMessagesDeleted {
const char kEventName[] = …;
base::Value::List Create() { … }
}
namespace OnSendError {
const char kEventName[] = …;
Error::Details::Details()
{ … }
Error::Details::~Details() = default;
Error::Details::Details(Details&& rhs) noexcept = default;
Error::Details& Error::Details::operator=(Details&& rhs) noexcept = default;
base::Value::Dict Error::Details::ToValue() const { … }
Error::Error()
{ … }
Error::~Error() = default;
Error::Error(Error&& rhs) noexcept = default;
Error& Error::operator=(Error&& rhs) noexcept = default;
base::Value::Dict Error::ToValue() const { … }
base::Value::List Create(const Error& error) { … }
}
}
}
}