Some cleanup.
This commit is contained in:
parent
1879392c7b
commit
06cc133959
2 changed files with 5 additions and 4 deletions
|
@ -28,10 +28,13 @@ class DownloadItem : public mate::EventEmitter,
|
|||
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;
|
||||
|
@ -49,7 +52,6 @@ class DownloadItem : public mate::EventEmitter,
|
|||
const GURL& GetUrl();
|
||||
void SetSavePath(const base::FilePath& path);
|
||||
|
||||
static void* UserDataKey();
|
||||
private:
|
||||
// mate::Wrappable:
|
||||
mate::ObjectTemplateBuilder GetObjectTemplateBuilder(
|
||||
|
|
|
@ -34,7 +34,6 @@ class AtomDownloadManagerDelegate : public content::DownloadManagerDelegate {
|
|||
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;
|
||||
|
|
Loading…
Reference in a new issue