diff options
Diffstat (limited to 'content/shell/shell_download_manager_delegate.cc')
-rw-r--r-- | content/shell/shell_download_manager_delegate.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/content/shell/shell_download_manager_delegate.cc b/content/shell/shell_download_manager_delegate.cc index 67ff59a..7856a66 100644 --- a/content/shell/shell_download_manager_delegate.cc +++ b/content/shell/shell_download_manager_delegate.cc @@ -39,6 +39,11 @@ void ShellDownloadManagerDelegate::SetDownloadManager( void ShellDownloadManagerDelegate::Shutdown() { } +DownloadId ShellDownloadManagerDelegate::GetNextId() { + static int next_id; + return DownloadId(this, ++next_id); +} + bool ShellDownloadManagerDelegate::ShouldStartDownload(int32 download_id) { DownloadItem* download = download_manager_->GetActiveDownloadItem(download_id); |