From: Haojian Wu Date: Thu, 24 Sep 2015 11:31:09 +0000 (+0800) Subject: Some cleanup. X-Git-Tag: v0.33.2~6^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=06cc1339597fa5b75f14a7695f6517100f23fcc6;p=electron.git Some cleanup. --- diff --git a/atom/browser/api/atom_api_download_item.h b/atom/browser/api/atom_api_download_item.h index e7b30dd1..14074a4b 100644 --- a/atom/browser/api/atom_api_download_item.h +++ b/atom/browser/api/atom_api_download_item.h @@ -28,10 +28,13 @@ class DownloadItem : public mate::EventEmitter, base::FilePath path_; }; - explicit DownloadItem(content::DownloadItem* download_item); - ~DownloadItem(); static mate::Handle 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( diff --git a/atom/browser/atom_download_manager_delegate.h b/atom/browser/atom_download_manager_delegate.h index d602cb9a..2df3a7d4 100644 --- a/atom/browser/atom_download_manager_delegate.h +++ b/atom/browser/atom_download_manager_delegate.h @@ -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;