chromium/out/Default/gen/chrome/common/extensions/api/gcm.cc

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// GENERATED FROM THE API DEFINITION IN
//   chrome/common/extensions/api/gcm.json
// by tools/json_schema_compiler.
// DO NOT EDIT.

#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 {
//
// Properties
//

const int MAX_MESSAGE_SIZE =;

//
// Functions
//

namespace Register {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create(const std::string& registration_id) {}
}  // namespace Register

namespace Unregister {

base::Value::List Results::Create() {}
}  // namespace Unregister

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 {}

// static
bool Params::Message::Data::Populate(
    const base::Value::Dict& dict, Data& out) {}

// static
bool Params::Message::Data::Populate(
    const base::Value& value, Data& out) {}

// static
std::optional<Params::Message::Data> Params::Message::Data::FromValue(const base::Value::Dict& value) {}

// static
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 {}

// static
bool Params::Message::Populate(
    const base::Value::Dict& dict, Message& out) {}

// static
bool Params::Message::Populate(
    const base::Value& value, Message& out) {}

// static
std::optional<Params::Message> Params::Message::FromValue(const base::Value::Dict& value) {}

// static
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;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create(const std::string& message_id) {}
}  // namespace Send

//
// Events
//

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 OnMessage

namespace OnMessagesDeleted {

const char kEventName[] =;

base::Value::List Create() {}

}  // namespace OnMessagesDeleted

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) {}

}  // namespace OnSendError

}  // namespace gcm
}  // namespace api
}  // namespace extensions