mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Mac: Add CefDownloadManagerDelegate::ChooseDownloadPath implementation (issue #634).
- Persist downloaded files after CEF exits (issue #634). - Shutdown the DownloadManager when CEF exits. - Don't show an error message when downloading files with cefclient. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@682 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -30,6 +30,7 @@ class CefDownloadManagerDelegate
|
||||
virtual void ChooseDownloadPath(content::WebContents* web_contents,
|
||||
const FilePath& suggested_path,
|
||||
int32 download_id) OVERRIDE;
|
||||
virtual void AddItemToPersistentStore(content::DownloadItem* item) OVERRIDE;
|
||||
|
||||
private:
|
||||
friend class base::RefCountedThreadSafe<CefDownloadManagerDelegate>;
|
||||
@@ -41,6 +42,9 @@ class CefDownloadManagerDelegate
|
||||
void RestartDownload(int32 download_id,
|
||||
const FilePath& suggested_path);
|
||||
|
||||
FilePath PlatformChooseDownloadPath(content::WebContents* web_contents,
|
||||
const FilePath& suggested_path);
|
||||
|
||||
content::DownloadManager* download_manager_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(CefDownloadManagerDelegate);
|
||||
|
Reference in New Issue
Block a user