NetworkProcessCreationParameters.h [plain text]
#pragma once
#include "CacheModel.h"
#include "SandboxExtension.h"
#include <WebCore/Cookie.h>
#include <wtf/ProcessID.h>
#include <wtf/Vector.h>
#include <wtf/text/WTFString.h>
#if USE(SOUP)
#include <WebCore/HTTPCookieAcceptPolicy.h>
#endif
namespace IPC {
class Decoder;
class Encoder;
}
namespace WebKit {
struct NetworkProcessCreationParameters {
NetworkProcessCreationParameters();
void encode(IPC::Encoder&) const;
static WARN_UNUSED_RETURN bool decode(IPC::Decoder&, NetworkProcessCreationParameters&);
CacheModel cacheModel { CacheModel::DocumentViewer };
#if PLATFORM(MAC) || PLATFORM(MACCATALYST)
Vector<uint8_t> uiProcessCookieStorageIdentifier;
#endif
#if PLATFORM(IOS_FAMILY)
SandboxExtension::Handle cookieStorageDirectoryExtensionHandle;
SandboxExtension::Handle containerCachesDirectoryExtensionHandle;
SandboxExtension::Handle parentBundleDirectoryExtensionHandle;
SandboxExtension::Handle tempDirectoryExtensionHandle;
#endif
bool shouldSuppressMemoryPressureHandler { false };
Vector<String> urlSchemesRegisteredForCustomProtocols;
#if PLATFORM(COCOA)
String uiProcessBundleIdentifier;
uint32_t uiProcessSDKVersion { 0 };
RetainPtr<CFDataRef> networkATSContext;
#endif
#if USE(SOUP)
WebCore::HTTPCookieAcceptPolicy cookieAcceptPolicy { WebCore::HTTPCookieAcceptPolicy::AlwaysAccept };
Vector<String> languages;
#endif
Vector<String> urlSchemesRegisteredAsSecure;
Vector<String> urlSchemesRegisteredAsBypassingContentSecurityPolicy;
Vector<String> urlSchemesRegisteredAsLocal;
Vector<String> urlSchemesRegisteredAsNoAccess;
bool enablePrivateClickMeasurement { true };
bool enablePrivateClickMeasurementDebugMode { false };
};
}