NetworkLoadParameters.h [plain text]
#ifndef NetworkLoadParameters_h
#define NetworkLoadParameters_h
#include <WebCore/BlobDataFileReference.h>
#include <WebCore/ResourceLoaderOptions.h>
#include <WebCore/ResourceRequest.h>
#include <pal/SessionID.h>
namespace WebKit {
enum class PreconnectOnly { No, Yes };
class NetworkLoadParameters {
public:
uint64_t webPageID { 0 };
uint64_t webFrameID { 0 };
PAL::SessionID sessionID { PAL::SessionID::emptySessionID() };
WebCore::ResourceRequest request;
WebCore::ContentSniffingPolicy contentSniffingPolicy { WebCore::SniffContent };
WebCore::ContentEncodingSniffingPolicy contentEncodingSniffingPolicy { WebCore::ContentEncodingSniffingPolicy::Sniff };
WebCore::StoredCredentialsPolicy storedCredentialsPolicy { WebCore::StoredCredentialsPolicy::DoNotUse };
WebCore::ClientCredentialPolicy clientCredentialPolicy { WebCore::ClientCredentialPolicy::CannotAskClientForCredentials };
bool shouldFollowRedirects { true };
bool shouldClearReferrerOnHTTPSToHTTPRedirect { true };
bool defersLoading { false };
bool isMainFrameNavigation { false };
bool needsCertificateInfo { false };
#if USE(NETWORK_SESSION)
Vector<RefPtr<WebCore::BlobDataFileReference>> blobFileReferences;
#endif
PreconnectOnly shouldPreconnectOnly { PreconnectOnly::No };
};
}
#endif // NetworkLoadParameters_h