Title: [219165] trunk/Source
Revision
219165
Author
[email protected]
Date
2017-07-05 16:40:26 -0700 (Wed, 05 Jul 2017)

Log Message

Make WebKit's public headers on Mac and iOS C++ module safe
https://bugs.webkit.org/show_bug.cgi?id=174175

Reviewed by Alex Christensen.

Fixed the header files.

Source/WebKit/mac:

* Misc/WebDownload.h:
* Misc/WebKitErrors.h:
* Plugins/WebPluginContainer.h:
* WebView/WebResourceLoadDelegate.h:

Source/WebKit2:

* UIProcess/API/Cocoa/WKContentRuleList.h:
* UIProcess/API/Cocoa/WKContentRuleListStore.h:
* UIProcess/API/Cocoa/WKUIDelegate.h:

Modified Paths

Diff

Modified: trunk/Source/WebKit/mac/ChangeLog (219164 => 219165)


--- trunk/Source/WebKit/mac/ChangeLog	2017-07-05 23:36:42 UTC (rev 219164)
+++ trunk/Source/WebKit/mac/ChangeLog	2017-07-05 23:40:26 UTC (rev 219165)
@@ -1,3 +1,17 @@
+2017-07-05  Ryosuke Niwa  <[email protected]>
+
+        Make WebKit's public headers on Mac and iOS C++ module safe
+        https://bugs.webkit.org/show_bug.cgi?id=174175
+
+        Reviewed by Alex Christensen.
+
+        Fixed the header files.
+
+        * Misc/WebDownload.h:
+        * Misc/WebKitErrors.h:
+        * Plugins/WebPluginContainer.h:
+        * WebView/WebResourceLoadDelegate.h:
+
 2017-07-03  Myles C. Maxfield  <[email protected]>
 
         Remove copy of ICU headers from WebKit

Modified: trunk/Source/WebKit/mac/Misc/WebDownload.h (219164 => 219165)


--- trunk/Source/WebKit/mac/Misc/WebDownload.h	2017-07-05 23:36:42 UTC (rev 219164)
+++ trunk/Source/WebKit/mac/Misc/WebDownload.h	2017-07-05 23:40:26 UTC (rev 219165)
@@ -42,6 +42,7 @@
 #import <WebKitLegacy/WAKAppKitStubs.h>
 #endif
 
+@class NSWindow;
 @class WebDownloadInternal;
 
 /*!

Modified: trunk/Source/WebKit/mac/Misc/WebKitErrors.h (219164 => 219165)


--- trunk/Source/WebKit/mac/Misc/WebKitErrors.h	2017-07-05 23:36:42 UTC (rev 219164)
+++ trunk/Source/WebKit/mac/Misc/WebKitErrors.h	2017-07-05 23:40:26 UTC (rev 219165)
@@ -26,6 +26,8 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+@class NSString;
+
 extern NSString *WebKitErrorDomain;
 
 extern NSString * const WebKitErrorMIMETypeKey;

Modified: trunk/Source/WebKit/mac/Plugins/WebPluginContainer.h (219164 => 219165)


--- trunk/Source/WebKit/mac/Plugins/WebPluginContainer.h	2017-07-05 23:36:42 UTC (rev 219164)
+++ trunk/Source/WebKit/mac/Plugins/WebPluginContainer.h	2017-07-05 23:40:26 UTC (rev 219165)
@@ -30,6 +30,7 @@
 
 #if !TARGET_OS_IPHONE
 #import <AppKit/AppKit.h>
+@class WebFrame;
 #endif
 
 /*!

Modified: trunk/Source/WebKit/mac/WebView/WebResourceLoadDelegate.h (219164 => 219165)


--- trunk/Source/WebKit/mac/WebView/WebResourceLoadDelegate.h	2017-07-05 23:36:42 UTC (rev 219164)
+++ trunk/Source/WebKit/mac/WebView/WebResourceLoadDelegate.h	2017-07-05 23:40:26 UTC (rev 219165)
@@ -26,12 +26,17 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#import <Foundation/NSObjCRuntime.h>
+
 @class WebView;
 @class WebDataSource;
+@class NSError;
 @class NSURLAuthenticationChallenge;
 @class NSURLResponse;
 @class NSURLRequest;
 
+@protocol NSObject;
+
 /*!
     @category  WebResourceLoadDelegate
     @discussion Implementors of this protocol will receive messages indicating

Modified: trunk/Source/WebKit2/ChangeLog (219164 => 219165)


--- trunk/Source/WebKit2/ChangeLog	2017-07-05 23:36:42 UTC (rev 219164)
+++ trunk/Source/WebKit2/ChangeLog	2017-07-05 23:40:26 UTC (rev 219165)
@@ -1,3 +1,16 @@
+2017-07-05  Ryosuke Niwa  <[email protected]>
+
+        Make WebKit's public headers on Mac and iOS C++ module safe
+        https://bugs.webkit.org/show_bug.cgi?id=174175
+
+        Reviewed by Alex Christensen.
+
+        Fixed the header files.
+
+        * UIProcess/API/Cocoa/WKContentRuleList.h:
+        * UIProcess/API/Cocoa/WKContentRuleListStore.h:
+        * UIProcess/API/Cocoa/WKUIDelegate.h:
+
 2017-07-05  Chris Dumez  <[email protected]>
 
         [WK2] WebsiteDataStore::setResourceLoadStatisticsEnabled() updates processPools the store is not associated with

Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/WKContentRuleList.h (219164 => 219165)


--- trunk/Source/WebKit2/UIProcess/API/Cocoa/WKContentRuleList.h	2017-07-05 23:36:42 UTC (rev 219164)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/WKContentRuleList.h	2017-07-05 23:40:26 UTC (rev 219165)
@@ -27,6 +27,8 @@
 
 #if WK_API_ENABLED
 
+#import <Foundation/Foundation.h>
+
 WK_CLASS_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA))
 @interface WKContentRuleList : NSObject
 

Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/WKContentRuleListStore.h (219164 => 219165)


--- trunk/Source/WebKit2/UIProcess/API/Cocoa/WKContentRuleListStore.h	2017-07-05 23:36:42 UTC (rev 219164)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/WKContentRuleListStore.h	2017-07-05 23:40:26 UTC (rev 219165)
@@ -27,6 +27,11 @@
 
 #if WK_API_ENABLED
 
+#import <Foundation/Foundation.h>
+
+@class NSURL;
+@class NSError;
+@class NSArray;
 @class WKContentRuleList;
 
 WK_CLASS_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA))

Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/WKUIDelegate.h (219164 => 219165)


--- trunk/Source/WebKit2/UIProcess/API/Cocoa/WKUIDelegate.h	2017-07-05 23:36:42 UTC (rev 219164)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/WKUIDelegate.h	2017-07-05 23:40:26 UTC (rev 219165)
@@ -36,6 +36,7 @@
 @class WKNavigationAction;
 @class WKOpenPanelParameters;
 @class WKPreviewElementInfo;
+@class WKWebView;
 @class WKWebViewConfiguration;
 @class WKWindowFeatures;
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to