alloy: Fix crash when downloading a modified PDF form (see issue #3169)

Create a CefFileSystemDelegate based on the ShellFileSystemDelegate placeholder
implementation. An actual implementation will still be required to properly
support this download functionality.
This commit is contained in:
Cristian Amarie
2021-08-19 22:05:52 +03:00
committed by Marshall Greenblatt
parent 318f46bf46
commit eac16430da
5 changed files with 142 additions and 0 deletions

View File

@ -25,6 +25,7 @@ class CefExtensionsAPIClient : public ExtensionsAPIClient {
MimeHandlerViewGuest* guest) const override;
void AttachWebContentsHelpers(
content::WebContents* web_contents) const override;
FileSystemDelegate* GetFileSystemDelegate() override;
// Storage API support.
@ -37,6 +38,9 @@ class CefExtensionsAPIClient : public ExtensionsAPIClient {
observers,
std::map<settings_namespace::Namespace, ValueStoreCache*>* caches)
override;
private:
std::unique_ptr<FileSystemDelegate> file_system_delegate_;
};
} // namespace extensions