base::FilePath path_;
};
- explicit DownloadItem(content::DownloadItem* download_item);
- ~DownloadItem();
static mate::Handle<DownloadItem> Create(v8::Isolate* isolate,
content::DownloadItem* item);
+ static void* UserDataKey();
+
+ protected:
+ explicit DownloadItem(content::DownloadItem* download_item);
+ ~DownloadItem();
// Override content::DownloadItem::Observer methods
void OnDownloadUpdated(content::DownloadItem* download) override;
const GURL& GetUrl();
void SetSavePath(const base::FilePath& path);
- static void* UserDataKey();
private:
// mate::Wrappable:
mate::ObjectTemplateBuilder GetObjectTemplateBuilder(
void OnDownloadPathGenerated(uint32 download_id,
const content::DownloadTargetCallback& callback,
const base::FilePath& default_path);
- void SetOpenDownloadDialog(bool open_download_dialog);
// content::DownloadManagerDelegate:
void Shutdown() override;