WTF: use Forward.h when appropriate instead of Vector.h
authorjfbastien@apple.com <jfbastien@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 Sep 2017 21:28:55 +0000 (21:28 +0000)
committerjfbastien@apple.com <jfbastien@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 Sep 2017 21:28:55 +0000 (21:28 +0000)
commit3c78d23ab7cc2823c2fb1ab820a3a67f3486347e
tree8a3a11dc32645412047ae2cba2af7aa1810e215b
parentd8b920344bf3da5e3606759da1f5221e1c4b9bd0
WTF: use Forward.h when appropriate instead of Vector.h
https://bugs.webkit.org/show_bug.cgi?id=176984

Reviewed by Saam Barati.

There's no need to include Vector.h when Forward.h will suffice. All we need is to move the template default parameters from Vector, and then the forward declaration can be used in so many new places: if a header only takes Vector by reference, rvalue reference, pointer, returns any of these, or has them as members then the header doesn't need to see the definition because the declaration will suffice.

Source/JavaScriptCore:

* bytecode/HandlerInfo.h:
* heap/GCIncomingRefCounted.h:
* heap/GCSegmentedArray.h:
* wasm/js/JSWebAssemblyModule.h:

Source/WebCore:

* Modules/entriesapi/FileSystemEntriesCallback.h:
* Modules/indexeddb/IDBEventDispatcher.h:
* Modules/indexeddb/IDBFactory.h:
* Modules/indexeddb/client/IDBConnectionProxy.h:
* Modules/indexeddb/server/IDBConnectionToClientDelegate.h:
* Modules/webdatabase/DatabaseTask.h:
* Modules/websockets/WebSocketChannelClient.h:
* contentextensions/CombinedURLFilters.h:
* crypto/SerializedCryptoKeyWrap.h:
* css/InspectorCSSOMWrappers.h:
* css/PageRuleCollector.h:
* css/parser/CSSParserTokenRange.h:
* dom/DocumentTouch.h:
* dom/MutationCallback.h:
* editing/EditingStyle.h:
* editing/SpellChecker.h:
* editing/markup.h:
* fileapi/ThreadableBlobRegistry.h:
* html/FileListCreator.h:
* inspector/WebHeapAgent.h:
* loader/ContentFilter.cpp:
(WebCore::ContentFilter::ContentFilter):
* loader/ContentFilter.h:
* loader/CookieJar.h:
* loader/FrameLoaderClient.h:
* loader/LoaderStrategy.h:
* loader/SubframeLoader.h:
* page/ChromeClient.h:
* page/FrameSnapshotting.h:
* page/IntersectionObserverCallback.h:
* page/PageSerializer.h:
* page/UserContentURLPattern.h:
* page/scrolling/AxisScrollSnapOffsets.h:
* page/win/FrameWin.h:
* platform/CookiesStrategy.h:
* platform/KeyedCoding.h:
* platform/PasteboardStrategy.h:
* platform/SSLKeyGenerator.h:
* platform/ScrollableArea.h:
* platform/encryptedmedia/CDMFactory.h:
* platform/gamepad/EmptyGamepadProvider.cpp:
* platform/gamepad/GamepadProvider.h:
* platform/gamepad/GamepadProviderClient.h:
* platform/gamepad/PlatformGamepad.h:
* platform/graphics/GeometryUtilities.cpp:
* platform/graphics/GeometryUtilities.h:
* platform/graphics/Icon.h:
* platform/graphics/LayoutRect.h:
* platform/graphics/Path.h:
* platform/graphics/WOFFFileFormat.h:
* platform/graphics/avfoundation/MediaSampleAVFObjC.h:
* platform/graphics/avfoundation/objc/AVAssetTrackUtilities.h:
* platform/graphics/ca/PlatformCAAnimation.h:
* platform/graphics/ca/win/PlatformCALayerWinInternal.h:
* platform/graphics/opentype/OpenTypeMathData.h:
* platform/image-encoders/JPEGImageEncoder.h:
* platform/image-encoders/PNGImageEncoder.h:
* platform/network/BlobRegistry.h:
* platform/network/HTTPParsers.h:
* platform/network/PlatformCookieJar.h:
* platform/network/cf/DownloadBundle.h:
* platform/network/curl/CurlCacheEntry.h:
* platform/network/curl/DownloadBundle.h:
* platform/text/LineEnding.h:
* platform/text/QuotedPrintable.cpp:
* platform/text/QuotedPrintable.h:
* rendering/FlexibleBoxAlgorithm.h:
* rendering/style/QuotesData.h:
* rendering/svg/SVGSubpathData.h:
* storage/StorageEventDispatcher.h:
* style/StyleInvalidator.h:
* style/StyleRelations.h:
* svg/SVGAltGlyphDefElement.h:
* svg/SVGAltGlyphItemElement.h:

Source/WebDriver:

* Session.h:

Source/WebKit:

* Scripts/webkit/LegacyMessages-expected.h:
* Scripts/webkit/Messages-expected.h:
* Shared/API/APIData.h:
* UIProcess/API/APIContextMenuClient.h:
* UIProcess/API/APIFormClient.h:
* UIProcess/API/APIHTTPCookieStore.h:
* UIProcess/API/APINotificationProvider.h:
* UIProcess/API/glib/WebKitNotificationProvider.h:
* UIProcess/Notifications/WebNotificationProvider.h:
* UIProcess/TextCheckerCompletion.h:
* UIProcess/WebCookieManagerProxy.h:
* UIProcess/WebOpenPanelResultListenerProxy.h:
* UIProcess/WebPasteboardProxy.h:
* UIProcess/WebPopupMenuProxy.h:
* UIProcess/WebTextCheckerClient.h:
* WebProcess/Cookies/WebCookieManager.h:
* WebProcess/Gamepad/WebGamepadProvider.h:
* WebProcess/InjectedBundle/API/APIInjectedBundleEditorClient.h:
* WebProcess/InjectedBundle/API/APIInjectedBundlePageContextMenuClient.h:
* WebProcess/InjectedBundle/API/APIInjectedBundlePageLoaderClient.h:
* WebProcess/InjectedBundle/APIInjectedBundleFormClient.h:
* WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
* WebProcess/Network/webrtc/WebRTCMonitor.h:
* WebProcess/Network/webrtc/WebRTCResolver.h:
* WebProcess/WebPage/DrawingArea.h:
* WebProcess/WebPage/WebOpenPanelResultListener.h:

Source/WTF:

* wtf/Forward.h:
* wtf/Vector.h:
* wtf/text/StringVector.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@222113 268f45cc-cd09-0410-ab3c-d52691b4dbfc
113 files changed:
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/bytecode/HandlerInfo.h
Source/JavaScriptCore/heap/GCIncomingRefCounted.h
Source/JavaScriptCore/heap/GCSegmentedArray.h
Source/JavaScriptCore/wasm/js/JSWebAssemblyModule.h
Source/WTF/ChangeLog
Source/WTF/wtf/Forward.h
Source/WTF/wtf/Vector.h
Source/WTF/wtf/text/StringVector.h
Source/WebCore/ChangeLog
Source/WebCore/Modules/entriesapi/FileSystemEntriesCallback.h
Source/WebCore/Modules/indexeddb/IDBEventDispatcher.h
Source/WebCore/Modules/indexeddb/IDBFactory.h
Source/WebCore/Modules/indexeddb/client/IDBConnectionProxy.h
Source/WebCore/Modules/indexeddb/server/IDBConnectionToClientDelegate.h
Source/WebCore/Modules/webdatabase/DatabaseTask.h
Source/WebCore/Modules/websockets/WebSocketChannelClient.h
Source/WebCore/contentextensions/CombinedURLFilters.h
Source/WebCore/crypto/SerializedCryptoKeyWrap.h
Source/WebCore/css/InspectorCSSOMWrappers.h
Source/WebCore/css/PageRuleCollector.h
Source/WebCore/css/parser/CSSParserTokenRange.h
Source/WebCore/dom/DocumentTouch.h
Source/WebCore/dom/MutationCallback.h
Source/WebCore/editing/EditingStyle.h
Source/WebCore/editing/SpellChecker.h
Source/WebCore/editing/markup.h
Source/WebCore/fileapi/ThreadableBlobRegistry.h
Source/WebCore/html/FileListCreator.h
Source/WebCore/inspector/WebHeapAgent.h
Source/WebCore/loader/ContentFilter.cpp
Source/WebCore/loader/ContentFilter.h
Source/WebCore/loader/CookieJar.h
Source/WebCore/loader/FrameLoaderClient.h
Source/WebCore/loader/LoaderStrategy.h
Source/WebCore/loader/SubframeLoader.h
Source/WebCore/page/ChromeClient.h
Source/WebCore/page/FrameSnapshotting.h
Source/WebCore/page/IntersectionObserverCallback.h
Source/WebCore/page/PageSerializer.h
Source/WebCore/page/UserContentURLPattern.h
Source/WebCore/page/scrolling/AxisScrollSnapOffsets.h
Source/WebCore/page/win/FrameWin.h
Source/WebCore/platform/CookiesStrategy.h
Source/WebCore/platform/KeyedCoding.h
Source/WebCore/platform/PasteboardStrategy.h
Source/WebCore/platform/SSLKeyGenerator.h
Source/WebCore/platform/ScrollableArea.h
Source/WebCore/platform/encryptedmedia/CDMFactory.cpp
Source/WebCore/platform/encryptedmedia/CDMFactory.h
Source/WebCore/platform/gamepad/EmptyGamepadProvider.cpp
Source/WebCore/platform/gamepad/GamepadProvider.h
Source/WebCore/platform/gamepad/GamepadProviderClient.h
Source/WebCore/platform/gamepad/PlatformGamepad.h
Source/WebCore/platform/graphics/GeometryUtilities.cpp
Source/WebCore/platform/graphics/GeometryUtilities.h
Source/WebCore/platform/graphics/Icon.h
Source/WebCore/platform/graphics/LayoutRect.h
Source/WebCore/platform/graphics/Path.h
Source/WebCore/platform/graphics/WOFFFileFormat.h
Source/WebCore/platform/graphics/avfoundation/MediaSampleAVFObjC.h
Source/WebCore/platform/graphics/avfoundation/objc/AVAssetTrackUtilities.h
Source/WebCore/platform/graphics/ca/PlatformCAAnimation.h
Source/WebCore/platform/graphics/ca/win/PlatformCALayerWinInternal.h
Source/WebCore/platform/graphics/opentype/OpenTypeMathData.h
Source/WebCore/platform/image-encoders/JPEGImageEncoder.h
Source/WebCore/platform/image-encoders/PNGImageEncoder.h
Source/WebCore/platform/network/BlobRegistry.h
Source/WebCore/platform/network/HTTPParsers.h
Source/WebCore/platform/network/PlatformCookieJar.h
Source/WebCore/platform/network/cf/DownloadBundle.h
Source/WebCore/platform/network/curl/CurlCacheEntry.h
Source/WebCore/platform/network/curl/DownloadBundle.h
Source/WebCore/platform/text/LineEnding.h
Source/WebCore/platform/text/QuotedPrintable.cpp
Source/WebCore/platform/text/QuotedPrintable.h
Source/WebCore/rendering/FlexibleBoxAlgorithm.h
Source/WebCore/rendering/style/QuotesData.h
Source/WebCore/rendering/svg/SVGSubpathData.h
Source/WebCore/storage/StorageEventDispatcher.h
Source/WebCore/style/StyleInvalidator.h
Source/WebCore/style/StyleRelations.h
Source/WebCore/svg/SVGAltGlyphDefElement.h
Source/WebCore/svg/SVGAltGlyphItemElement.h
Source/WebDriver/ChangeLog
Source/WebDriver/Session.h
Source/WebKit/ChangeLog
Source/WebKit/Scripts/webkit/LegacyMessages-expected.h
Source/WebKit/Scripts/webkit/Messages-expected.h
Source/WebKit/Shared/API/APIData.h
Source/WebKit/UIProcess/API/APIContextMenuClient.h
Source/WebKit/UIProcess/API/APIFormClient.h
Source/WebKit/UIProcess/API/APIHTTPCookieStore.h
Source/WebKit/UIProcess/API/APINotificationProvider.h
Source/WebKit/UIProcess/API/glib/WebKitNotificationProvider.h
Source/WebKit/UIProcess/Notifications/WebNotificationProvider.h
Source/WebKit/UIProcess/TextCheckerCompletion.h
Source/WebKit/UIProcess/WebCookieManagerProxy.h
Source/WebKit/UIProcess/WebOpenPanelResultListenerProxy.h
Source/WebKit/UIProcess/WebPasteboardProxy.h
Source/WebKit/UIProcess/WebPopupMenuProxy.h
Source/WebKit/UIProcess/WebTextCheckerClient.h
Source/WebKit/WebProcess/Cookies/WebCookieManager.h
Source/WebKit/WebProcess/Gamepad/WebGamepadProvider.h
Source/WebKit/WebProcess/InjectedBundle/API/APIInjectedBundleEditorClient.h
Source/WebKit/WebProcess/InjectedBundle/API/APIInjectedBundlePageContextMenuClient.h
Source/WebKit/WebProcess/InjectedBundle/API/APIInjectedBundlePageLoaderClient.h
Source/WebKit/WebProcess/InjectedBundle/APIInjectedBundleFormClient.h
Source/WebKit/WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h
Source/WebKit/WebProcess/Network/webrtc/WebRTCMonitor.h
Source/WebKit/WebProcess/Network/webrtc/WebRTCResolver.h
Source/WebKit/WebProcess/WebPage/DrawingArea.h
Source/WebKit/WebProcess/WebPage/WebOpenPanelResultListener.h