From 06cc1339597fa5b75f14a7695f6517100f23fcc6 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Thu, 24 Sep 2015 19:31:09 +0800 Subject: [PATCH] Some cleanup. --- atom/browser/api/atom_api_download_item.h | 8 +++++--- atom/browser/atom_download_manager_delegate.h | 1 - 2 files changed, 5 insertions(+), 4 deletions(-) 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; -- 2.43.0