[Cocoa] -[WKWebsiteDataStore httpCookieStore] is declared in the main @interface...
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 May 2017 14:58:26 +0000 (14:58 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 May 2017 14:58:26 +0000 (14:58 +0000)
https://bugs.webkit.org/show_bug.cgi?id=171657

Reviewed by Sam Weinig.

* UIProcess/API/Cocoa/WKWebsiteDataStore.mm:
(-[WKWebsiteDataStore httpCookieStore]): Moved from the WKPrivate category into the main
  @implementation block.

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

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/Cocoa/WKWebsiteDataStore.mm

index 60b620d..f40478b 100644 (file)
@@ -1,3 +1,14 @@
+2017-05-04  Dan Bernstein  <mitz@apple.com>
+
+        [Cocoa] -[WKWebsiteDataStore httpCookieStore] is declared in the main @interface but implemented in a category
+        https://bugs.webkit.org/show_bug.cgi?id=171657
+
+        Reviewed by Sam Weinig.
+
+        * UIProcess/API/Cocoa/WKWebsiteDataStore.mm:
+        (-[WKWebsiteDataStore httpCookieStore]): Moved from the WKPrivate category into the main
+          @implementation block.
+
 2017-05-04  Andy Estes  <aestes@apple.com>
 
         [Cocoa] Add an optional width parameter to -[WKWebProcessPlugInNodeHandle renderedImageWithOptions:]
index 02e5b67..9571059 100644 (file)
     return allWebsiteDataTypes;
 }
 
+- (WKHTTPCookieStore *)httpCookieStore
+{
+    return WebKit::wrapper(_websiteDataStore->httpCookieStore());
+}
+
 static std::chrono::system_clock::time_point toSystemClockTime(NSDate *date)
 {
     ASSERT(date);
@@ -197,11 +202,6 @@ static Vector<WebKit::WebsiteDataRecord> toWebsiteDataRecords(NSArray *dataRecor
     _websiteDataStore->websiteDataStore().setResourceLoadStatisticsEnabled(enabled);
 }
 
-- (WKHTTPCookieStore *)httpCookieStore
-{
-    return WebKit::wrapper(_websiteDataStore->httpCookieStore());
-}
-
 @end
 
 #endif // WK_API_ENABLED