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_;
|
base::FilePath path_;
|
||||||
};
|
};
|
||||||
|
|
||||||
explicit DownloadItem(content::DownloadItem* download_item);
|
|
||||||
~DownloadItem();
|
|
||||||
static mate::Handle<DownloadItem> Create(v8::Isolate* isolate,
|
static mate::Handle<DownloadItem> Create(v8::Isolate* isolate,
|
||||||
content::DownloadItem* item);
|
content::DownloadItem* item);
|
||||||
|
static void* UserDataKey();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
explicit DownloadItem(content::DownloadItem* download_item);
|
||||||
|
~DownloadItem();
|
||||||
|
|
||||||
// Override content::DownloadItem::Observer methods
|
// Override content::DownloadItem::Observer methods
|
||||||
void OnDownloadUpdated(content::DownloadItem* download) override;
|
void OnDownloadUpdated(content::DownloadItem* download) override;
|
||||||
|
@ -49,7 +52,6 @@ class DownloadItem : public mate::EventEmitter,
|
||||||
const GURL& GetUrl();
|
const GURL& GetUrl();
|
||||||
void SetSavePath(const base::FilePath& path);
|
void SetSavePath(const base::FilePath& path);
|
||||||
|
|
||||||
static void* UserDataKey();
|
|
||||||
private:
|
private:
|
||||||
// mate::Wrappable:
|
// mate::Wrappable:
|
||||||
mate::ObjectTemplateBuilder GetObjectTemplateBuilder(
|
mate::ObjectTemplateBuilder GetObjectTemplateBuilder(
|
||||||
|
|
|
@ -34,7 +34,6 @@ class AtomDownloadManagerDelegate : public content::DownloadManagerDelegate {
|
||||||
void OnDownloadPathGenerated(uint32 download_id,
|
void OnDownloadPathGenerated(uint32 download_id,
|
||||||
const content::DownloadTargetCallback& callback,
|
const content::DownloadTargetCallback& callback,
|
||||||
const base::FilePath& default_path);
|
const base::FilePath& default_path);
|
||||||
void SetOpenDownloadDialog(bool open_download_dialog);
|
|
||||||
|
|
||||||
// content::DownloadManagerDelegate:
|
// content::DownloadManagerDelegate:
|
||||||
void Shutdown() override;
|
void Shutdown() override;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue