56b904947b
Chromium crashes when starting a download if a content::DownloadManagerDelegate is not provided. We now provide a default implementation of content::DownloadManagerDelegate which disallows all downloads.
19 lines
417 B
C++
19 lines
417 B
C++
#ifndef BRIGHTRAY_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_
|
|
#define BRIGHTRAY_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_
|
|
|
|
#include "content/public/browser/download_manager_delegate.h"
|
|
|
|
namespace brightray {
|
|
|
|
class DownloadManagerDelegate : public content::DownloadManagerDelegate {
|
|
public:
|
|
DownloadManagerDelegate();
|
|
~DownloadManagerDelegate();
|
|
|
|
private:
|
|
DISALLOW_COPY_AND_ASSIGN(DownloadManagerDelegate);
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|