NetworkResourceLoadParameters.h [plain text]
#ifndef NetworkResourceLoadParameters_h
#define NetworkResourceLoadParameters_h
#include "NetworkLoadParameters.h"
#include "SandboxExtension.h"
#include "WebCompiledContentRuleListData.h"
#include <WebCore/ContentSecurityPolicyResponseHeaders.h>
#include <WebCore/FetchOptions.h>
#include <WebCore/ResourceHandle.h>
#include <WebCore/ResourceLoaderOptions.h>
#include <WebCore/ResourceRequest.h>
#include <WebCore/SecurityOrigin.h>
#include <pal/SessionID.h>
#include <wtf/Seconds.h>
namespace IPC {
class Decoder;
class Encoder;
}
namespace WebKit {
typedef uint64_t ResourceLoadIdentifier;
class NetworkResourceLoadParameters : public NetworkLoadParameters {
public:
void encode(IPC::Encoder&) const;
static bool decode(IPC::Decoder&, NetworkResourceLoadParameters&);
ResourceLoadIdentifier identifier { 0 };
Vector<RefPtr<SandboxExtension>> requestBodySandboxExtensions; RefPtr<SandboxExtension> resourceSandboxExtension; Seconds maximumBufferingTime;
Vector<String> derivedCachedDataTypesToRetrieve;
RefPtr<WebCore::SecurityOrigin> sourceOrigin;
WebCore::FetchOptions::Mode mode;
std::optional<WebCore::ContentSecurityPolicyResponseHeaders> cspResponseHeaders;
#if ENABLE(CONTENT_EXTENSIONS)
WebCore::URL mainDocumentURL;
Vector<std::pair<String, WebCompiledContentRuleListData>> contentRuleLists;
#endif
};
}
#endif // NetworkResourceLoadParameters_h