[Cocoa] Add SPI to warm an initial web process
authoraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Nov 2015 07:59:16 +0000 (07:59 +0000)
committeraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Nov 2015 07:59:16 +0000 (07:59 +0000)
https://bugs.webkit.org/show_bug.cgi?id=150886

Reviewed by Dan Bernstein.

* UIProcess/API/Cocoa/WKProcessPool.mm:
(-[WKProcessPool _warmInitialProcess]):
* UIProcess/API/Cocoa/WKProcessPoolPrivate.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@192015 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/Cocoa/WKProcessPool.mm
Source/WebKit2/UIProcess/API/Cocoa/WKProcessPoolPrivate.h

index f5758800eebeb1ed3c5ca88986f0099346ec0b71..53a938a1c46d808eb6ce00a8f404c200c5b28ee3 100644 (file)
@@ -1,3 +1,14 @@
+2015-11-03  Andy Estes  <aestes@apple.com>
+
+        [Cocoa] Add SPI to warm an initial web process
+        https://bugs.webkit.org/show_bug.cgi?id=150886
+
+        Reviewed by Dan Bernstein.
+
+        * UIProcess/API/Cocoa/WKProcessPool.mm:
+        (-[WKProcessPool _warmInitialProcess]):
+        * UIProcess/API/Cocoa/WKProcessPoolPrivate.h:
+
 2015-11-03  Andy Estes  <aestes@apple.com>
 
         [Cocoa] Adopt WKWebViewAdditions
index 01dfa864dd7cb27cd59c1372db9a0c0a1cc20add..9681ae83a119cbee5733b47780a99c6a8a3985e4 100644 (file)
@@ -220,6 +220,11 @@ static WebKit::HTTPCookieAcceptPolicy toHTTPCookieAcceptPolicy(NSHTTPCookieAccep
     _processPool->setDownloadClient(std::make_unique<WebKit::DownloadClient>(downloadDelegate));
 }
 
+- (void)_warmInitialProcess
+{
+    _processPool->warmInitialProcess();
+}
+
 @end
 
 #endif // WK_API_ENABLED
index b5cfcb20435cc063fe67543575d885ad36fcc61b..6d091d8873b3fc6007285ca117342f13a23c1db8 100644 (file)
@@ -52,6 +52,8 @@
 + (NSURL *)_websiteDataURLForContainerWithURL:(NSURL *)containerURL;
 + (NSURL *)_websiteDataURLForContainerWithURL:(NSURL *)containerURL bundleIdentifierIfNotInContainer:(NSString *)bundleIdentifier;
 
+- (void)_warmInitialProcess WK_AVAILABLE(WK_MAC_TBA, WK_IOS_TBA);
+
 @end
 
 #endif