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

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

Issue 6871020: Added functionality to use "SaveAs..." from PDF plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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
Index: chrome/browser/ui/download/download_tab_helper.h
===================================================================
--- chrome/browser/ui/download/download_tab_helper.h (revision 81013)
+++ chrome/browser/ui/download/download_tab_helper.h (working copy)
@@ -8,10 +8,11 @@
#include "base/basictypes.h"
#include "chrome/browser/download/save_package.h"
+#include "content/browser/tab_contents/tab_contents_observer.h"
// Per-tab download controller. Handles dealing with various per-tab download
// duties.
-class DownloadTabHelper {
+class DownloadTabHelper : public TabContentsObserver {
public:
explicit DownloadTabHelper(TabContents* tab_contents);
virtual ~DownloadTabHelper();
@@ -29,7 +30,8 @@
SavePackage* save_package() const { return save_package_.get(); }
private:
- TabContents* tab_contents_;
+ // TabContentsObserver overrides.
+ virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
// SavePackage, lazily created.
scoped_refptr<SavePackage> save_package_;
« no previous file with comments | « no previous file | chrome/browser/ui/download/download_tab_helper.cc » ('j') | chrome/browser/ui/download/download_tab_helper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698