chromium/out/Default/gen/extensions/common/api/web_request.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
//   extensions/common/api/web_request.json
// by tools/json_schema_compiler.
// DO NOT EDIT.

#include "extensions/common/api/web_request.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>
#include "extensions/common/api/extension_types.h"


UTF8ToUTF16;

namespace extensions {
namespace api {
namespace web_request {
//
// Properties
//

const int MAX_HANDLER_BEHAVIOR_CHANGED_CALLS_PER_10_MINUTES =;

//
// Types
//

const char* ToString(ResourceType enum_param) {}

ResourceType ParseResourceType(std::string_view enum_string) {}

std::u16string GetResourceTypeParseError(std::string_view enum_string) {}


const char* ToString(OnBeforeRequestOptions enum_param) {}

OnBeforeRequestOptions ParseOnBeforeRequestOptions(std::string_view enum_string) {}

std::u16string GetOnBeforeRequestOptionsParseError(std::string_view enum_string) {}


const char* ToString(OnBeforeSendHeadersOptions enum_param) {}

OnBeforeSendHeadersOptions ParseOnBeforeSendHeadersOptions(std::string_view enum_string) {}

std::u16string GetOnBeforeSendHeadersOptionsParseError(std::string_view enum_string) {}


const char* ToString(OnSendHeadersOptions enum_param) {}

OnSendHeadersOptions ParseOnSendHeadersOptions(std::string_view enum_string) {}

std::u16string GetOnSendHeadersOptionsParseError(std::string_view enum_string) {}


const char* ToString(OnHeadersReceivedOptions enum_param) {}

OnHeadersReceivedOptions ParseOnHeadersReceivedOptions(std::string_view enum_string) {}

std::u16string GetOnHeadersReceivedOptionsParseError(std::string_view enum_string) {}


const char* ToString(OnAuthRequiredOptions enum_param) {}

OnAuthRequiredOptions ParseOnAuthRequiredOptions(std::string_view enum_string) {}

std::u16string GetOnAuthRequiredOptionsParseError(std::string_view enum_string) {}


const char* ToString(OnResponseStartedOptions enum_param) {}

OnResponseStartedOptions ParseOnResponseStartedOptions(std::string_view enum_string) {}

std::u16string GetOnResponseStartedOptionsParseError(std::string_view enum_string) {}


const char* ToString(OnBeforeRedirectOptions enum_param) {}

OnBeforeRedirectOptions ParseOnBeforeRedirectOptions(std::string_view enum_string) {}

std::u16string GetOnBeforeRedirectOptionsParseError(std::string_view enum_string) {}


const char* ToString(OnCompletedOptions enum_param) {}

OnCompletedOptions ParseOnCompletedOptions(std::string_view enum_string) {}

std::u16string GetOnCompletedOptionsParseError(std::string_view enum_string) {}


const char* ToString(OnErrorOccurredOptions enum_param) {}

OnErrorOccurredOptions ParseOnErrorOccurredOptions(std::string_view enum_string) {}

std::u16string GetOnErrorOccurredOptionsParseError(std::string_view enum_string) {}


RequestFilter::RequestFilter()
 {}

RequestFilter::~RequestFilter() = default;
RequestFilter::RequestFilter(RequestFilter&& rhs) noexcept = default;
RequestFilter& RequestFilter::operator=(RequestFilter&& rhs) noexcept = default;
RequestFilter RequestFilter::Clone() const {}

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

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

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

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

base::Value::Dict RequestFilter::ToValue() const {}


UploadData::UploadData()
 {}

UploadData::~UploadData() = default;
UploadData::UploadData(UploadData&& rhs) noexcept = default;
UploadData& UploadData::operator=(UploadData&& rhs) noexcept = default;
UploadData UploadData::Clone() const {}

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

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

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

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

base::Value::Dict UploadData::ToValue() const {}


FormDataItem::FormDataItem()
 {}

FormDataItem::~FormDataItem() = default;
FormDataItem::FormDataItem(FormDataItem&& rhs) noexcept = default;
FormDataItem& FormDataItem::operator=(FormDataItem&& rhs) noexcept = default;
FormDataItem FormDataItem::Clone() const {}

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

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

base::Value FormDataItem::ToValue() const {}


const char* ToString(IgnoredActionType enum_param) {}

IgnoredActionType ParseIgnoredActionType(std::string_view enum_string) {}

std::u16string GetIgnoredActionTypeParseError(std::string_view enum_string) {}



//
// Functions
//

namespace HandlerBehaviorChanged {

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

//
// Events
//

namespace OnBeforeRequest {

const char kEventName[] =;

Details::RequestBody::FormData::FormData()
 {}

Details::RequestBody::FormData::~FormData() = default;
Details::RequestBody::FormData::FormData(FormData&& rhs) noexcept = default;
Details::RequestBody::FormData& Details::RequestBody::FormData::operator=(FormData&& rhs) noexcept = default;
base::Value::Dict Details::RequestBody::FormData::ToValue() const {}



Details::RequestBody::RequestBody()
 {}

Details::RequestBody::~RequestBody() = default;
Details::RequestBody::RequestBody(RequestBody&& rhs) noexcept = default;
Details::RequestBody& Details::RequestBody::operator=(RequestBody&& rhs) noexcept = default;
base::Value::Dict Details::RequestBody::ToValue() const {}



Details::Details()
:{}

Details::~Details() = default;
Details::Details(Details&& rhs) noexcept = default;
Details& Details::operator=(Details&& rhs) noexcept = default;
base::Value::Dict Details::ToValue() const {}


base::Value::List Create(const Details& details) {}

}  // namespace OnBeforeRequest

namespace OnErrorOccurred {

const char kEventName[] =;

Details::Details()
:{}

Details::~Details() = default;
Details::Details(Details&& rhs) noexcept = default;
Details& Details::operator=(Details&& rhs) noexcept = default;
base::Value::Dict Details::ToValue() const {}


base::Value::List Create(const Details& details) {}

}  // namespace OnErrorOccurred

namespace OnActionIgnored {

const char kEventName[] =;

Details::Details()
:{}

Details::~Details() = default;
Details::Details(Details&& rhs) noexcept = default;
Details& Details::operator=(Details&& rhs) noexcept = default;
base::Value::Dict Details::ToValue() const {}


base::Value::List Create(const Details& details) {}

}  // namespace OnActionIgnored

}  // namespace web_request
}  // namespace api
}  // namespace extensions