Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6721)

Unified Diff: chrome/browser/ui/download/download_tab_helper.h

Issue 7035015: Revert 85504 - Move download stuff to download tab helper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/download/download_tab_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/download/download_tab_helper.h
===================================================================
--- chrome/browser/ui/download/download_tab_helper.h (revision 85514)
+++ chrome/browser/ui/download/download_tab_helper.h (working copy)
@@ -10,8 +10,6 @@
#include "chrome/browser/download/save_package.h"
#include "content/browser/tab_contents/tab_contents_observer.h"
-class DownloadItem;
-class DownloadTabHelperDelegate;
class TabContentsWrapper;
// Per-tab download controller. Handles dealing with various per-tab download
@@ -21,9 +19,6 @@
explicit DownloadTabHelper(TabContentsWrapper* tab_contents);
virtual ~DownloadTabHelper();
- DownloadTabHelperDelegate* delegate() const { return delegate_; }
- void set_delegate(DownloadTabHelperDelegate* d) { delegate_ = d; }
-
// Prepare for saving the current web page to disk.
void OnSavePage();
@@ -40,17 +35,9 @@
// Returns the SavePackage which manages the page saving job. May be NULL.
SavePackage* save_package() const { return save_package_.get(); }
- // Notifies the delegate that a download is about to be started.
- // This notification is fired before a local temporary file has been created.
- bool CanDownload(int request_id);
-
- // Notifies the delegate that a download started.
- void OnStartDownload(DownloadItem* download);
-
private:
// TabContentsObserver overrides.
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
- virtual void DidGetUserGesture() OVERRIDE;
// SavePackage, lazily created.
scoped_refptr<SavePackage> save_package_;
@@ -58,10 +45,6 @@
// Owning TabContentsWrapper.
TabContentsWrapper* tab_contents_wrapper_;
- // Delegate for notifying our owner (usually Browser) about stuff. Not owned
- // by us.
- DownloadTabHelperDelegate* delegate_;
-
DISALLOW_COPY_AND_ASSIGN(DownloadTabHelper);
};
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/download/download_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698