| # Copyright (C) 2012-2019 Apple Inc. All rights reserved. |
| # |
| # Redistribution and use in source and binary forms, with or without |
| # modification, are permitted provided that the following conditions |
| # are met: |
| # 1. Redistributions of source code must retain the above copyright |
| # notice, this list of conditions and the following disclaimer. |
| # 2. Redistributions in binary form must reproduce the above copyright |
| # notice, this list of conditions and the following disclaimer in the |
| # documentation and/or other materials provided with the distribution. |
| # |
| # THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND |
| # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| # DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR |
| # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| |
| messages -> NetworkProcess LegacyReceiver { |
| # Initializes the network process. |
| InitializeNetworkProcess(struct WebKit::NetworkProcessCreationParameters processCreationParameters) |
| |
| # Creates a connection for communication with a WebProcess |
| CreateNetworkConnectionToWebProcess(bool isServiceWorkerProcess, WebCore::RegistrableDomain registrableDomain) |
| |
| #if USE(SOUP) |
| SetIgnoreTLSErrors(bool ignoreTLSErrors) |
| UserPreferredLanguagesChanged(Vector<String> languages) |
| SetNetworkProxySettings(struct WebCore::SoupNetworkProxySettings settings) |
| #endif |
| |
| #if USE(CURL) |
| SetNetworkProxySettings(PAL::SessionID sessionID, WebCore::CurlProxySettings settings) |
| #endif |
| |
| ClearCachedCredentials() |
| |
| AddWebsiteDataStore(struct WebKit::WebsiteDataStoreParameters websiteDataStoreParameters); |
| DestroySession(PAL::SessionID sessionID) |
| |
| FetchWebsiteData(PAL::SessionID sessionID, OptionSet<WebKit::WebsiteDataType> websiteDataTypes, OptionSet<WebKit::WebsiteDataFetchOption> fetchOptions, uint64_t callbackID) |
| DeleteWebsiteData(PAL::SessionID sessionID, OptionSet<WebKit::WebsiteDataType> websiteDataTypes, WallTime modifiedSince, uint64_t callbackID) |
| DeleteWebsiteDataForOrigins(PAL::SessionID sessionID, OptionSet<WebKit::WebsiteDataType> websiteDataTypes, Vector<WebCore::SecurityOriginData> origins, Vector<String> cookieHostNames, Vector<String> HSTSCacheHostNames, uint64_t callbackID) |
| |
| DownloadRequest(PAL::SessionID sessionID, WebKit::DownloadID downloadID, WebCore::ResourceRequest request, String suggestedFilename) |
| ResumeDownload(PAL::SessionID sessionID, WebKit::DownloadID downloadID, IPC::DataReference resumeData, String path, WebKit::SandboxExtension::Handle sandboxExtensionHandle) |
| CancelDownload(WebKit::DownloadID downloadID) |
| #if PLATFORM(COCOA) |
| PublishDownloadProgress(WebKit::DownloadID downloadID, URL url, WebKit::SandboxExtension::Handle sandboxExtensionHandle) |
| #endif |
| ApplicationDidEnterBackground() |
| ApplicationWillEnterForeground() |
| |
| ContinueWillSendRequest(WebKit::DownloadID downloadID, WebCore::ResourceRequest request) |
| ContinueDecidePendingDownloadDestination(WebKit::DownloadID downloadID, String destination, WebKit::SandboxExtension::Handle sandboxExtensionHandle, bool allowOverwrite) |
| |
| #if PLATFORM(COCOA) |
| SetQOS(int latencyQOS, int throughputQOS) |
| SetStorageAccessAPIEnabled(bool enabled) |
| #endif |
| SetAllowsAnySSLCertificateForWebSocket(bool enabled) -> () Synchronous |
| |
| SyncAllCookies() |
| |
| AllowSpecificHTTPSCertificateForHost(WebCore::CertificateInfo certificate, String host) |
| SetCanHandleHTTPSServerTrustEvaluation(bool value) |
| |
| GetNetworkProcessStatistics(uint64_t callbackID) |
| |
| ClearCacheForAllOrigins(uint32_t cachesToClear) |
| SetCacheModel(enum:uint8_t WebKit::CacheModel cacheModel); |
| |
| ProcessDidTransitionToBackground() |
| ProcessDidTransitionToForeground() |
| |
| ProcessWillSuspendImminently() |
| PrepareToSuspend() |
| CancelPrepareToSuspend() |
| ProcessDidResume() |
| |
| PreconnectTo(URL url, enum:uint8_t WebCore::StoredCredentialsPolicy storedCredentialsPolicy); |
| |
| #if ENABLE(RESOURCE_LOAD_STATISTICS) |
| ClearPrevalentResource(PAL::SessionID sessionID, WebCore::RegistrableDomain resourceDomain) -> () Async |
| ClearUserInteraction(PAL::SessionID sessionID, WebCore::RegistrableDomain resourceDomain) -> () Async |
| DumpResourceLoadStatistics(PAL::SessionID sessionID) -> (String dumpedStatistics) Async |
| SetResourceLoadStatisticsEnabled(bool enabled) |
| UpdatePrevalentDomainsToBlockCookiesFor(PAL::SessionID sessionID, Vector<WebCore::RegistrableDomain> domainsToBlock) -> () Async |
| IsGrandfathered(PAL::SessionID sessionID, WebCore::RegistrableDomain targetDomain) -> (bool isGrandfathered) Async |
| IsPrevalentResource(PAL::SessionID sessionID, WebCore::RegistrableDomain targetDomain) -> (bool isPrevalent) Async |
| IsVeryPrevalentResource(PAL::SessionID sessionID, WebCore::RegistrableDomain targetDomain) -> (bool isVeryPrevalent) Async |
| SetAgeCapForClientSideCookies(PAL::SessionID sessionID, Optional<Seconds> seconds) -> () Async |
| SetLastSeen(PAL::SessionID sessionID, WebCore::RegistrableDomain resourceDomain, Seconds seconds) -> () Async |
| SetPrevalentResource(PAL::SessionID sessionID, WebCore::RegistrableDomain resourceDomain) -> () Async |
| SetPrevalentResourceForDebugMode(PAL::SessionID sessionID, WebCore::RegistrableDomain resourceDomain) -> () Async |
| HadUserInteraction(PAL::SessionID sessionID, WebCore::RegistrableDomain resourceDomain) -> (bool hadUserInteraction) Async |
| GetAllStorageAccessEntries(PAL::SessionID sessionID) -> (Vector<String> domains) Async |
| IsRegisteredAsRedirectingTo(PAL::SessionID sessionID, WebCore::RegistrableDomain redirectedFromDomain, WebCore::RegistrableDomain redirectedToDomain) -> (bool isRedirectingTo) Async |
| IsRegisteredAsSubFrameUnder(PAL::SessionID sessionID, WebCore::RegistrableDomain subFrameDomain, WebCore::RegistrableDomain topFrameDomain) -> (bool isSubframeUnder) Async |
| IsRegisteredAsSubresourceUnder(PAL::SessionID sessionID, WebCore::RegistrableDomain subresourceDomain, WebCore::RegistrableDomain topFrameDomain) -> (bool isSubresourceUnder) Async |
| LogFrameNavigation(PAL::SessionID sessionID, WebCore::RegistrableDomain targetDomain, WebCore::RegistrableDomain topFrameDomain, WebCore::RegistrableDomain sourceDomain, bool isRedirect, bool isMainFrame) |
| LogUserInteraction(PAL::SessionID sessionID, WebCore::RegistrableDomain topFrameDomain) -> () Async |
| RemovePrevalentDomains(PAL::SessionID sessionID, Vector<WebCore::RegistrableDomain> domainsWithInteraction) |
| ResetParametersToDefaultValues(PAL::SessionID sessionID) -> () Async |
| ScheduleClearInMemoryAndPersistent(PAL::SessionID sessionID, Optional<WallTime> modifiedSince, enum:bool WebKit::ShouldGrandfatherStatistics shouldGrandfather) -> () Async |
| ScheduleCookieBlockingUpdate(PAL::SessionID sessionID) -> () Async |
| ScheduleStatisticsAndDataRecordsProcessing(PAL::SessionID sessionID) -> () Async |
| SubmitTelemetry(PAL::SessionID sessionID) -> () Async |
| SetCacheMaxAgeCapForPrevalentResources(PAL::SessionID sessionID, Seconds seconds) -> () Async |
| SetGrandfathered(PAL::SessionID sessionID, WebCore::RegistrableDomain resourceDomain, bool isGrandfathered) -> () Async |
| SetGrandfatheringTime(PAL::SessionID sessionID, Seconds seconds) -> () Async |
| SetMaxStatisticsEntries(PAL::SessionID sessionID, uint64_t maximumEntryCount) -> () Async |
| SetMinimumTimeBetweenDataRecordsRemoval(PAL::SessionID sessionID, Seconds seconds) -> () Async |
| SetPruneEntriesDownTo(PAL::SessionID sessionID, uint64_t maximumEntryCount) -> () Async |
| SetShouldClassifyResourcesBeforeDataRecordsRemoval(PAL::SessionID sessionID, bool value) -> () Async |
| SetNotifyPagesWhenDataRecordsWereScanned(PAL::SessionID sessionID, bool value) -> () Async |
| SetIsRunningResourceLoadStatisticsTest(PAL::SessionID sessionID, bool value) -> () Async |
| SetNotifyPagesWhenTelemetryWasCaptured(PAL::SessionID sessionID, bool value) -> () Async |
| SetResourceLoadStatisticsDebugMode(PAL::SessionID sessionID, bool debugMode) -> () Async |
| SetVeryPrevalentResource(PAL::SessionID sessionID, WebCore::RegistrableDomain resourceDomain) -> () Async |
| SetSubframeUnderTopFrameDomain(PAL::SessionID sessionID, WebCore::RegistrableDomain subFrameDomain, WebCore::RegistrableDomain topFrameDomain) -> () Async |
| SetSubresourceUnderTopFrameDomain(PAL::SessionID sessionID, WebCore::RegistrableDomain subresourceDomain, WebCore::RegistrableDomain topFrameDomain) -> () Async |
| SetSubresourceUniqueRedirectTo(PAL::SessionID sessionID, WebCore::RegistrableDomain subresourceDomain, WebCore::RegistrableDomain redirectedToDomain) -> () Async |
| SetSubresourceUniqueRedirectFrom(PAL::SessionID sessionID, WebCore::RegistrableDomain subresourceDomain, WebCore::RegistrableDomain redirectedFromDomain) -> () Async |
| SetTimeToLiveUserInteraction(PAL::SessionID sessionID, Seconds seconds) -> () Async |
| SetTopFrameUniqueRedirectTo(PAL::SessionID sessionID, WebCore::RegistrableDomain topFrameDomain, WebCore::RegistrableDomain redirectedToDomain) -> () Async |
| SetTopFrameUniqueRedirectFrom(PAL::SessionID sessionID, WebCore::RegistrableDomain topFrameDomain, WebCore::RegistrableDomain redirectedFromDomain) -> () Async |
| ResetCacheMaxAgeCapForPrevalentResources(PAL::SessionID sessionID) -> () Async |
| CommittedCrossSiteLoadWithLinkDecoration(PAL::SessionID sessionID, WebCore::RegistrableDomain fromDomain, WebCore::RegistrableDomain toDomain, uint64_t pageID) -> () Async |
| SetCrossSiteLoadWithLinkDecorationForTesting(PAL::SessionID sessionID, WebCore::RegistrableDomain fromDomain, WebCore::RegistrableDomain toDomain) -> () Async |
| ResetCrossSiteLoadsWithLinkDecorationForTesting(PAL::SessionID sessionID) -> () Async |
| DeleteCookiesForTesting(PAL::SessionID sessionID, WebCore::RegistrableDomain domain, bool includeHttpOnlyCookies) -> () Async |
| #endif |
| |
| SetSessionIsControlledByAutomation(PAL::SessionID sessionID, bool controlled); |
| |
| RegisterURLSchemeAsSecure(String scheme) |
| RegisterURLSchemeAsBypassingContentSecurityPolicy(String scheme) |
| RegisterURLSchemeAsLocal(String scheme) |
| RegisterURLSchemeAsNoAccess(String scheme) |
| RegisterURLSchemeAsDisplayIsolated(String scheme) |
| RegisterURLSchemeAsCORSEnabled(String scheme) |
| RegisterURLSchemeAsCanDisplayOnlyIfCanRequest(String scheme) |
| |
| SetCacheStorageParameters(PAL::SessionID sessionID, String cacheStorageDirectory, WebKit::SandboxExtension::Handle handle); |
| |
| #if ENABLE(SERVICE_WORKER) |
| PostMessageToServiceWorkerClient(struct WebCore::ServiceWorkerClientIdentifier destinationIdentifier, struct WebCore::MessageWithMessagePorts message, WebCore::ServiceWorkerIdentifier sourceIdentifier, String sourceOrigin) |
| |
| PostMessageToServiceWorker(WebCore::ServiceWorkerIdentifier destination, struct WebCore::MessageWithMessagePorts message, WebCore::ServiceWorkerOrClientIdentifier source, WebCore::SWServerConnectionIdentifier connectionIdentifier) |
| |
| DisableServiceWorkerProcessTerminationDelay() |
| #endif |
| |
| #if ENABLE(INDEXED_DATABASE) |
| SetIDBPerOriginQuota(uint64_t quota) |
| #endif |
| UpdateQuotaBasedOnSpaceUsageForTesting(PAL::SessionID sessionID, struct WebCore::ClientOrigin origin) |
| |
| StoreAdClickAttribution(PAL::SessionID sessionID, WebCore::AdClickAttribution adClickAttribution) |
| DumpAdClickAttribution(PAL::SessionID sessionID) -> (String adClickAttributionState) Async |
| ClearAdClickAttribution(PAL::SessionID sessionID) -> () Async |
| SetAdClickAttributionOverrideTimerForTesting(PAL::SessionID sessionID, bool value) -> () Async |
| SetAdClickAttributionConversionURLForTesting(PAL::SessionID sessionID, URL url) -> () Async |
| MarkAdClickAttributionsAsExpiredForTesting(PAL::SessionID sessionID) -> () Async |
| OriginsWithPersistentCredentials() -> (Vector<WebCore::SecurityOriginData> origins) Async |
| RemoveCredentialsWithOrigins(Vector<WebCore::SecurityOriginData> origins) -> () Async |
| } |