Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: e3fcc5543b97e63cdd7dab7c6accbed7cbb6991d https://github.com/WebKit/WebKit/commit/e3fcc5543b97e63cdd7dab7c6accbed7cbb6991d Author: Per Arne Vollan <pvol...@apple.com> Date: 2024-09-01 (Sun, 01 Sep 2024)
Changed paths: M Source/WebKit/NetworkProcess/Downloads/Download.h M Source/WebKit/NetworkProcess/Downloads/DownloadManager.cpp M Source/WebKit/NetworkProcess/Downloads/DownloadManager.h M Source/WebKit/NetworkProcess/Downloads/PendingDownload.cpp M Source/WebKit/NetworkProcess/Downloads/PendingDownload.h M Source/WebKit/NetworkProcess/Downloads/cocoa/DownloadCocoa.mm M Source/WebKit/NetworkProcess/NetworkProcess.cpp M Source/WebKit/NetworkProcess/NetworkProcess.h M Source/WebKit/NetworkProcess/NetworkProcess.messages.in M Source/WebKit/Shared/API/Cocoa/WebKitPrivate.h M Source/WebKit/UIProcess/API/APIDownloadClient.h M Source/WebKit/UIProcess/API/Cocoa/WKDownload.mm A Source/WebKit/UIProcess/API/Cocoa/WKDownloadDelegatePrivate.h M Source/WebKit/UIProcess/API/Cocoa/_WKDownload.mm M Source/WebKit/UIProcess/Downloads/DownloadProxy.cpp M Source/WebKit/UIProcess/Downloads/DownloadProxy.h M Source/WebKit/UIProcess/Downloads/DownloadProxy.messages.in M Source/WebKit/UIProcess/Downloads/DownloadProxyCocoa.mm A Source/WebKit/UIProcess/Downloads/UseDownloadPlaceholder.h M Source/WebKit/WebKit.xcodeproj/project.pbxproj M Tools/TestWebKitAPI/Tests/WebKitCocoa/Download.mm M Tools/TestWebKitAPI/cocoa/TestDownloadDelegate.h M Tools/TestWebKitAPI/cocoa/TestDownloadDelegate.mm Log Message: ----------- The download client should be able to determine if a placeholder should be used https://bugs.webkit.org/show_bug.cgi?id=278737 rdar://134794671 Reviewed by Alex Christensen. The download client should be able to determine if a placeholder should be used for the final location of the download. This patch prepares for this by passing the value from the UI process to the Networking process. * Source/WebKit/NetworkProcess/Downloads/Download.h: * Source/WebKit/NetworkProcess/Downloads/DownloadManager.cpp: (WebKit::DownloadManager::publishDownloadProgress): * Source/WebKit/NetworkProcess/Downloads/DownloadManager.h: * Source/WebKit/NetworkProcess/Downloads/PendingDownload.cpp: (WebKit::PendingDownload::publishProgress): (WebKit::PendingDownload::didBecomeDownload): * Source/WebKit/NetworkProcess/Downloads/PendingDownload.h: * Source/WebKit/NetworkProcess/Downloads/cocoa/DownloadCocoa.mm: (WebKit::Download::publishProgress): * Source/WebKit/NetworkProcess/NetworkProcess.cpp: (WebKit::NetworkProcess::publishDownloadProgress): * Source/WebKit/NetworkProcess/NetworkProcess.h: * Source/WebKit/NetworkProcess/NetworkProcess.messages.in: * Source/WebKit/Shared/API/Cocoa/WebKitPrivate.h: * Source/WebKit/UIProcess/API/Cocoa/_WKDownload.mm: (-[_WKDownload publishProgressAtURL:]): * Source/WebKit/UIProcess/API/Cocoa/WKDownload.mm: (-[WKDownload setDelegate:]): * Source/WebKit/UIProcess/API/Cocoa/WKDownloadDelegate.h: * Source/WebKit/UIProcess/API/Cocoa/WKDownloadDelegatePrivate.h: Added. * Source/WebKit/UIProcess/Downloads/DownloadProxy.cpp: (WebKit::DownloadProxy::decideDestinationWithSuggestedFilename): * Source/WebKit/UIProcess/Downloads/DownloadProxy.h: (WebKit::DownloadProxy::setUseDownloadPlaceholder): * Source/WebKit/UIProcess/Downloads/DownloadProxyCocoa.mm: (WebKit::DownloadProxy::publishProgress): * Source/WebKit/WebKit.xcodeproj/project.pbxproj: * Tools/TestWebKitAPI/Tests/WebKitCocoa/Download.mm: (TestWebKitAPI::DecidePlaceholderPolicy)): * Tools/TestWebKitAPI/cocoa/TestDownloadDelegate.h: * Tools/TestWebKitAPI/cocoa/TestDownloadDelegate.mm: (-[TestDownloadDelegate _download:decidePlaceholderPolicy:]): Canonical link: https://commits.webkit.org/283043@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes