For download support, we need to add API::DownloadClient and make the existing WebDownloadClient subclass to it. This is to follow the new pattern for API classes.
Created attachment 227230 [details] Patch.
Created attachment 227483 [details] [Webkit2] Add APIDownloadClient for download support.
Attachment 227483 [details] did not pass style-queue: ERROR: Source/WebKit2/UIProcess/API/APIDownloadClient.h:64: Missing space before { [whitespace/braces] [5] ERROR: Source/WebKit2/UIProcess/API/APIDownloadClient.h:64: Missing space inside { }. [whitespace/braces] [5] Total errors found: 2 in 7 files If any of these errors are false positives, please file a bug against check-webkit-style.
Somehow I missed Yongjun posting a patch, and I ended up writing an almost exact copy of it :( Sorry.
Comment on attachment 227230 [details] Patch. Looks very good, but the WebContext constructor needs to initialize m_downloadClient, something like: , m_downloadClient(std::make_unique<API::DownloadClient>())
Committed r166096: <http://trac.webkit.org/changeset/166096>