#include "content/browser/devtools/protocol/fetch.h"
#include "content/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 content {
namespace protocol {
namespace Fetch {
DeserializerState;
ProtocolTypeTraits;
const char Metainfo::domainName[] = …;
const char Metainfo::commandPrefix[] = …;
const char Metainfo::version[] = …;
namespace RequestStageEnum {
const char Request[] = …;
const char Response[] = …;
}
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
const char* AuthChallenge::SourceEnum::Server = …;
const char* AuthChallenge::SourceEnum::Proxy = …;
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
const char* AuthChallengeResponse::ResponseEnum::Default = …;
const char* AuthChallengeResponse::ResponseEnum::CancelAuth = …;
const char* AuthChallengeResponse::ResponseEnum::ProvideCredentials = …;
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
void Frontend::RequestPaused(const String& requestId, std::unique_ptr<protocol::Network::Request> request, const String& frameId, const String& resourceType, Maybe<String> responseErrorReason, Maybe<int> responseStatusCode, Maybe<String> responseStatusText, Maybe<protocol::Array<protocol::Fetch::HeaderEntry>> responseHeaders, Maybe<String> networkId, Maybe<String> redirectedRequestId)
{ … }
void Frontend::AuthRequired(const String& requestId, std::unique_ptr<protocol::Network::Request> request, const String& frameId, const String& resourceType, std::unique_ptr<protocol::Fetch::AuthChallenge> authChallenge)
{ … }
void Frontend::flush()
{ … }
void Frontend::sendRawNotification(std::unique_ptr<Serializable> notification)
{ … }
class DomainDispatcherImpl : public protocol::DomainDispatcher { … };
namespace {
DomainDispatcherImpl::CallHandler CommandByName(crdtp::span<uint8_t> command_name) { … }
}
std::function<void(const crdtp::Dispatchable&)> DomainDispatcherImpl::Dispatch(crdtp::span<uint8_t> command_name) { … }
namespace {
}
void DomainDispatcherImpl::disable(const crdtp::Dispatchable& dispatchable)
{ … }
class EnableCallbackImpl : public Backend::EnableCallback, public DomainDispatcher::Callback { … };
namespace {
struct enableParams : public crdtp::DeserializableProtocolObject<enableParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::enable(const crdtp::Dispatchable& dispatchable)
{ … }
class FailRequestCallbackImpl : public Backend::FailRequestCallback, public DomainDispatcher::Callback { … };
namespace {
struct failRequestParams : public crdtp::DeserializableProtocolObject<failRequestParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::failRequest(const crdtp::Dispatchable& dispatchable)
{ … }
class FulfillRequestCallbackImpl : public Backend::FulfillRequestCallback, public DomainDispatcher::Callback { … };
namespace {
struct fulfillRequestParams : public crdtp::DeserializableProtocolObject<fulfillRequestParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::fulfillRequest(const crdtp::Dispatchable& dispatchable)
{ … }
class ContinueRequestCallbackImpl : public Backend::ContinueRequestCallback, public DomainDispatcher::Callback { … };
namespace {
struct continueRequestParams : public crdtp::DeserializableProtocolObject<continueRequestParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::continueRequest(const crdtp::Dispatchable& dispatchable)
{ … }
class ContinueWithAuthCallbackImpl : public Backend::ContinueWithAuthCallback, public DomainDispatcher::Callback { … };
namespace {
struct continueWithAuthParams : public crdtp::DeserializableProtocolObject<continueWithAuthParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::continueWithAuth(const crdtp::Dispatchable& dispatchable)
{ … }
class ContinueResponseCallbackImpl : public Backend::ContinueResponseCallback, public DomainDispatcher::Callback { … };
namespace {
struct continueResponseParams : public crdtp::DeserializableProtocolObject<continueResponseParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::continueResponse(const crdtp::Dispatchable& dispatchable)
{ … }
class GetResponseBodyCallbackImpl : public Backend::GetResponseBodyCallback, public DomainDispatcher::Callback { … };
namespace {
struct getResponseBodyParams : public crdtp::DeserializableProtocolObject<getResponseBodyParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::getResponseBody(const crdtp::Dispatchable& dispatchable)
{ … }
class TakeResponseBodyAsStreamCallbackImpl : public Backend::TakeResponseBodyAsStreamCallback, public DomainDispatcher::Callback { … };
namespace {
struct takeResponseBodyAsStreamParams : public crdtp::DeserializableProtocolObject<takeResponseBodyAsStreamParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::takeResponseBodyAsStream(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
const std::vector<std::pair<crdtp::span<uint8_t>, crdtp::span<uint8_t>>>& SortedRedirects() { … }
}
void Dispatcher::wire(UberDispatcher* uber, Backend* backend)
{ … }
}
}
}