chromium/out/Default/gen/chrome/browser/devtools/protocol/storage.cc

// This file is generated by TypeBuilder_cpp.template.

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

#include "chrome/browser/devtools/protocol/storage.h"

#include "chrome/browser/devtools/protocol/protocol.h"

#include "third_party/inspector_protocol/crdtp/cbor.h"
#include "third_party/inspector_protocol/crdtp/find_by_first.h"
#include "third_party/inspector_protocol/crdtp/span.h"

namespace protocol {
namespace Storage {

DeserializerState;
ProtocolTypeTraits;

// ------------- Enum values from types.

const char Metainfo::domainName[] =;
const char Metainfo::commandPrefix[] =;
const char Metainfo::version[] =;



namespace InterestGroupAccessTypeEnum {
const char Join[] =;
const char Leave[] =;
const char Update[] =;
const char Loaded[] =;
const char Bid[] =;
const char Win[] =;
const char AdditionalBid[] =;
const char AdditionalBidWin[] =;
const char TopLevelBid[] =;
const char TopLevelAdditionalBid[] =;
const char Clear[] =;
} // namespace InterestGroupAccessTypeEnum


namespace InterestGroupAuctionEventTypeEnum {
const char Started[] =;
const char ConfigResolved[] =;
} // namespace InterestGroupAuctionEventTypeEnum


namespace InterestGroupAuctionFetchTypeEnum {
const char BidderJs[] =;
const char BidderWasm[] =;
const char SellerJs[] =;
const char BidderTrustedSignals[] =;
const char SellerTrustedSignals[] =;
} // namespace InterestGroupAuctionFetchTypeEnum


namespace SharedStorageAccessTypeEnum {
const char DocumentAddModule[] =;
const char DocumentSelectURL[] =;
const char DocumentRun[] =;
const char DocumentSet[] =;
const char DocumentAppend[] =;
const char DocumentDelete[] =;
const char DocumentClear[] =;
const char DocumentGet[] =;
const char WorkletSet[] =;
const char WorkletAppend[] =;
const char WorkletDelete[] =;
const char WorkletClear[] =;
const char WorkletGet[] =;
const char WorkletKeys[] =;
const char WorkletEntries[] =;
const char WorkletLength[] =;
const char WorkletRemainingBudget[] =;
const char HeaderSet[] =;
const char HeaderAppend[] =;
const char HeaderDelete[] =;
const char HeaderClear[] =;
} // namespace SharedStorageAccessTypeEnum


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


namespace StorageBucketsDurabilityEnum {
const char Relaxed[] =;
const char Strict[] =;
} // namespace StorageBucketsDurabilityEnum


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


namespace AttributionReportingSourceTypeEnum {
const char Navigation[] =;
const char Event[] =;
} // namespace AttributionReportingSourceTypeEnum





CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


namespace AttributionReportingTriggerDataMatchingEnum {
const char Exact[] =;
const char Modulus[] =;
} // namespace AttributionReportingTriggerDataMatchingEnum


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


namespace AttributionReportingSourceRegistrationResultEnum {
const char Success[] =;
const char InternalError[] =;
const char InsufficientSourceCapacity[] =;
const char InsufficientUniqueDestinationCapacity[] =;
const char ExcessiveReportingOrigins[] =;
const char ProhibitedByBrowserPolicy[] =;
const char SuccessNoised[] =;
const char DestinationReportingLimitReached[] =;
const char DestinationGlobalLimitReached[] =;
const char DestinationBothLimitsReached[] =;
const char ReportingOriginsPerSiteLimitReached[] =;
const char ExceedsMaxChannelCapacity[] =;
const char ExceedsMaxScopesChannelCapacity[] =;
const char ExceedsMaxTriggerStateCardinality[] =;
const char ExceedsMaxEventStatesLimit[] =;
const char DestinationPerDayReportingLimitReached[] =;
} // namespace AttributionReportingSourceRegistrationResultEnum


namespace AttributionReportingSourceRegistrationTimeConfigEnum {
const char Include[] =;
const char Exclude[] =;
} // namespace AttributionReportingSourceRegistrationTimeConfigEnum


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


namespace AttributionReportingEventLevelResultEnum {
const char Success[] =;
const char SuccessDroppedLowerPriority[] =;
const char InternalError[] =;
const char NoCapacityForAttributionDestination[] =;
const char NoMatchingSources[] =;
const char Deduplicated[] =;
const char ExcessiveAttributions[] =;
const char PriorityTooLow[] =;
const char NeverAttributedSource[] =;
const char ExcessiveReportingOrigins[] =;
const char NoMatchingSourceFilterData[] =;
const char ProhibitedByBrowserPolicy[] =;
const char NoMatchingConfigurations[] =;
const char ExcessiveReports[] =;
const char FalselyAttributedSource[] =;
const char ReportWindowPassed[] =;
const char NotRegistered[] =;
const char ReportWindowNotStarted[] =;
const char NoMatchingTriggerData[] =;
} // namespace AttributionReportingEventLevelResultEnum


namespace AttributionReportingAggregatableResultEnum {
const char Success[] =;
const char InternalError[] =;
const char NoCapacityForAttributionDestination[] =;
const char NoMatchingSources[] =;
const char ExcessiveAttributions[] =;
const char ExcessiveReportingOrigins[] =;
const char NoHistograms[] =;
const char InsufficientBudget[] =;
const char NoMatchingSourceFilterData[] =;
const char NotRegistered[] =;
const char ProhibitedByBrowserPolicy[] =;
const char Deduplicated[] =;
const char ReportWindowPassed[] =;
const char ExcessiveReports[] =;
} // namespace AttributionReportingAggregatableResultEnum


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


// ------------- Enum values from params.


// ------------- Frontend notifications.

void Frontend::CacheStorageContentUpdated(const String& origin, const String& storageKey, const String& bucketId, const String& cacheName)
{}

void Frontend::CacheStorageListUpdated(const String& origin, const String& storageKey, const String& bucketId)
{}

void Frontend::IndexedDBContentUpdated(const String& origin, const String& storageKey, const String& bucketId, const String& databaseName, const String& objectStoreName)
{}

void Frontend::IndexedDBListUpdated(const String& origin, const String& storageKey, const String& bucketId)
{}

void Frontend::InterestGroupAccessed(double accessTime, const String& type, const String& ownerOrigin, const String& name, Maybe<String> componentSellerOrigin, Maybe<double> bid, Maybe<String> bidCurrency, Maybe<String> uniqueAuctionId)
{}

void Frontend::InterestGroupAuctionEventOccurred(double eventTime, const String& type, const String& uniqueAuctionId, Maybe<String> parentAuctionId, Maybe<protocol::DictionaryValue> auctionConfig)
{}

void Frontend::InterestGroupAuctionNetworkRequestCreated(const String& type, const String& requestId, std::unique_ptr<protocol::Array<String>> auctions)
{}

void Frontend::SharedStorageAccessed(double accessTime, const String& type, const String& mainFrameId, const String& ownerOrigin, std::unique_ptr<protocol::Storage::SharedStorageAccessParams> params)
{}

void Frontend::StorageBucketCreatedOrUpdated(std::unique_ptr<protocol::Storage::StorageBucketInfo> bucketInfo)
{}

void Frontend::StorageBucketDeleted(const String& bucketId)
{}

void Frontend::AttributionReportingSourceRegistered(std::unique_ptr<protocol::Storage::AttributionReportingSourceRegistration> registration, const String& result)
{}

void Frontend::AttributionReportingTriggerRegistered(std::unique_ptr<protocol::Storage::AttributionReportingTriggerRegistration> registration, const String& eventLevel, const String& aggregatable)
{}

void Frontend::flush()
{}

void Frontend::sendRawNotification(std::unique_ptr<Serializable> notification)
{}

// --------------------- Dispatcher.

class DomainDispatcherImpl : public protocol::DomainDispatcher {};

namespace {
// This helper method with a static map of command methods (instance methods
// of DomainDispatcherImpl declared just above) by their name is used immediately below,
// in the DomainDispatcherImpl::Dispatch method.
DomainDispatcherImpl::CallHandler CommandByName(crdtp::span<uint8_t> command_name) {}
}  // namespace

std::function<void(const crdtp::Dispatchable&)> DomainDispatcherImpl::Dispatch(crdtp::span<uint8_t> command_name) {}


class RunBounceTrackingMitigationsCallbackImpl : public Backend::RunBounceTrackingMitigationsCallback, public DomainDispatcher::Callback {};

namespace {


}  // namespace

void DomainDispatcherImpl::runBounceTrackingMitigations(const crdtp::Dispatchable& dispatchable)
{}

class GetRelatedWebsiteSetsCallbackImpl : public Backend::GetRelatedWebsiteSetsCallback, public DomainDispatcher::Callback {};

namespace {


}  // namespace

void DomainDispatcherImpl::getRelatedWebsiteSets(const crdtp::Dispatchable& dispatchable)
{}

namespace {
// This helper method (with a static map of redirects) is used from Dispatcher::wire
// immediately below.
const std::vector<std::pair<crdtp::span<uint8_t>, crdtp::span<uint8_t>>>& SortedRedirects() {}
}  // namespace

// static
void Dispatcher::wire(UberDispatcher* uber, Backend* backend)
{}

} // Storage
} // namespace protocol