Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Reduce QuickLook.h include overhead
https://bugs.webkit.org/show_bug.cgi?id=166454 Reviewed by Andreas Kling. Source/WebCore: * dom/Document.cpp: Included QuickLook.h for QLPreviewProtocol(). * loader/DocumentLoader.cpp: (WebCore::DocumentLoader::setQuickLookHandle): Moved from DocumentLoader.h to here. * loader/DocumentLoader.h: Stopped including QuickLook.h and forward-declared QuickLookHandle. (WebCore::DocumentLoader::setQuickLookHandle): Moved definition out-of-line since it requires QuickLookHandle to be a complete type. * loader/ios/QuickLook.h: Updated to use #pragma once. Cleaned up includes and forward declarations. * platform/network/ResourceHandle.cpp: Included QuickLook.h so that QuickLookHandle is a complete type in the ResourceHandle constructor. * platform/network/ResourceHandle.h: Stopped including QuickLook.h and forward-declared QuickLookHandle. (WebCore::ResourceHandle::setQuickLookHandle): Moved definition out-of-line since it requires QuickLookHandle to be a complete type. * platform/network/mac/ResourceHandleMac.mm: (WebCore::ResourceHandle::setQuickLookHandle): Moved from ResourceHandle.h to here. * platform/network/mac/WebCoreResourceHandleAsDelegate.mm: Included QuickLook.h for QuickLookHandle. Source/WebKit: * WebCoreSupport/WebResourceLoadScheduler.cpp: Stopped including QuickLook.h. Source/WebKit2: * WebProcess/Network/WebLoaderStrategy.cpp: Included QuickLook.h for QLPreviewProtocol(). * WebProcess/Network/WebResourceLoader.cpp: Included QuickLook.h for QuickLookHandle. * WebProcess/Network/WebResourceLoader.h: Stopped including QuickLook.h. Canonical link: https://commits.webkit.org/183734@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@210130 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
90 additions
and 32 deletions.
- +27 −0 Source/WebCore/ChangeLog
- +4 −0 Source/WebCore/dom/Document.cpp
- +7 −0 Source/WebCore/loader/DocumentLoader.cpp
- +2 −5 Source/WebCore/loader/DocumentLoader.h
- +8 −14 Source/WebCore/loader/ios/QuickLook.h
- +4 −0 Source/WebCore/platform/network/ResourceHandle.cpp
- +2 −5 Source/WebCore/platform/network/ResourceHandle.h
- +7 −0 Source/WebCore/platform/network/mac/ResourceHandleMac.mm
- +1 −0 Source/WebCore/platform/network/mac/WebCoreResourceHandleAsDelegate.mm
- +9 −0 Source/WebKit/ChangeLog
- +0 −4 Source/WebKit/WebCoreSupport/WebResourceLoadScheduler.cpp
- +11 −0 Source/WebKit2/ChangeLog
- +4 −0 Source/WebKit2/WebProcess/Network/WebLoaderStrategy.cpp
- +4 −0 Source/WebKit2/WebProcess/Network/WebResourceLoader.cpp
- +0 −4 Source/WebKit2/WebProcess/Network/WebResourceLoader.h
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -38,6 +38,10 @@ | ||
#include <wtf/text/AtomicStringHash.h> | ||
#include <wtf/text/CString.h> | ||
|
||
#if USE(QUICK_LOOK) | ||
#include "QuickLook.h" | ||
#endif | ||
|
||
namespace WebCore { | ||
|
||
static bool shouldForceContentSniffing; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -32,10 +32,6 @@ | ||
#include <wtf/RefCounted.h> | ||
#include <wtf/RefPtr.h> | ||
|
||
namespace IPC { | ||
class DataReference; | ||
} | ||