1 # Copyright (C) 2010 Apple Inc. All rights reserved.
3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions
6 # 1. Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer.
8 # 2. Redistributions in binary form must reproduce the above copyright
9 # notice, this list of conditions and the following disclaimer in the
10 # documentation and/or other materials provided with the distribution.
12 # THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND
13 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
14 # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
15 # DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR
16 # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
17 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
18 # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
19 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
20 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
21 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 messages -> WebProcess LegacyReceiver {
24 InitializeWebProcess(struct WebKit::WebProcessCreationParameters processCreationParameters)
27 CreateWebPage(uint64_t newPageID, struct WebKit::WebPageCreationParameters pageCreationParameters)
30 SetCacheModel(uint32_t cacheModel)
31 RegisterURLSchemeAsEmptyDocument(String scheme)
32 RegisterURLSchemeAsSecure(String scheme)
33 RegisterURLSchemeAsBypassingContentSecurityPolicy(String scheme)
34 SetDomainRelaxationForbiddenForURLScheme(String scheme)
35 RegisterURLSchemeAsLocal(String scheme)
36 RegisterURLSchemeAsNoAccess(String scheme)
37 RegisterURLSchemeAsDisplayIsolated(String scheme)
38 RegisterURLSchemeAsCORSEnabled(String scheme)
39 #if ENABLE(CACHE_PARTITIONING)
40 RegisterURLSchemeAsCachePartitioned(String scheme)
42 SetDefaultRequestTimeoutInterval(double timeoutInterval)
43 SetAlwaysUsesComplexTextCodePath(bool alwaysUseComplexText)
44 SetShouldUseFontSmoothing(bool useFontSmoothing)
45 UserPreferredLanguagesChanged(Vector<String> languages)
46 FullKeyboardAccessModeChanged(bool fullKeyboardAccessEnabled)
48 SetIgnoreTLSErrors(bool ignoreTLSErrors)
51 // Legacy private browsing session is per process. Individual pages or page groups may use the private session or the default one as appropriate.
52 EnsurePrivateBrowsingSession(WebCore::SessionID sessionID)
53 DestroyPrivateBrowsingSession(WebCore::SessionID sessionID)
56 DidAddPlugInAutoStartOriginHash(uint32_t hash, double expirationTime, WebCore::SessionID sessionID)
57 ResetPlugInAutoStartOriginDefaultHashes(HashMap<uint32_t,double> hashes)
58 ResetPlugInAutoStartOriginHashes(HashMap<WebCore::SessionID, HashMap<uint32_t,double>> hashes)
59 SetPluginLoadClientPolicy(uint8_t policy, String host, String bundleIdentifier, String versionString)
60 ClearPluginClientPolicies()
62 void StartMemorySampler(WebKit::SandboxExtension::Handle sampleLogFileHandle, String sampleLogFilePath, double interval);
63 void StopMemorySampler();
65 # Downloads. This should really be in a Download.messages.in, but it seemed unnecessary to create a new file just for
67 DownloadRequest(WebCore::SessionID sessionID, uint64_t downloadID, uint64_t initiatingPageID, WebCore::ResourceRequest request)
68 ResumeDownload(uint64_t downloadID, IPC::DataReference resumeData, String path, WebKit::SandboxExtension::Handle sandboxExtensionHandle)
69 CancelDownload(uint64_t downloadID)
71 SetTextCheckerState(struct WebKit::TextCheckerState textCheckerState)
73 SetEnhancedAccessibility(bool flag)
75 GetWebCoreStatistics(uint64_t callbackID)
76 GarbageCollectJavaScriptObjects()
77 SetJavaScriptGarbageCollectorTimerEnabled(bool enable)
79 SetInjectedBundleParameter(String parameter, IPC::DataReference value);
80 SetInjectedBundleParameters(IPC::DataReference parameters);
81 HandleInjectedBundleMessage(String messageName, WebKit::UserData messageBody);
85 FetchWebsiteData(WebCore::SessionID sessionID, uint64_t websiteDataTypes, uint64_t callbackID)
86 DeleteWebsiteData(WebCore::SessionID sessionID, uint64_t websiteDataTypes, std::chrono::system_clock::time_point modifiedSince, uint64_t callbackID)
87 DeleteWebsiteDataForOrigins(WebCore::SessionID sessionID, uint64_t websiteDataTypes, Vector<WebCore::SecurityOriginData> origins, uint64_t callbackID)
89 SetProcessSuppressionEnabled(bool flag)
91 SetQOS(int latencyQOS, int throughputQOS)
95 AllowSpecificHTTPSCertificateForHost(WebCore::CertificateInfo certificate, String host)
98 SetMemoryCacheDisabled(bool disabled);
100 #if ENABLE(SERVICE_CONTROLS)
101 SetEnabledServices(bool hasImageServices, bool hasSelectionServices, bool hasRichContentServices)
104 ProcessWillSuspendImminently() -> (bool handled)
106 CancelPrepareToSuspend()