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

Side by Side Diff: chrome/browser/download/chrome_download_manager_delegate.h

Issue 9363001: Eliminate DownloadProgressUpdated. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tests work Created 8 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/download/chrome_download_manager_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_
6 #define CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ 6 #define CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/hash_tables.h" 10 #include "base/hash_tables.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 base::Time remove_end) OVERRIDE; 79 base::Time remove_end) OVERRIDE;
80 virtual void GetSaveDir(content::WebContents* web_contents, 80 virtual void GetSaveDir(content::WebContents* web_contents,
81 FilePath* website_save_dir, 81 FilePath* website_save_dir,
82 FilePath* download_save_dir) OVERRIDE; 82 FilePath* download_save_dir) OVERRIDE;
83 virtual void ChooseSavePath( 83 virtual void ChooseSavePath(
84 content::WebContents* web_contents, 84 content::WebContents* web_contents,
85 const FilePath& suggested_path, 85 const FilePath& suggested_path,
86 const FilePath::StringType& default_extension, 86 const FilePath::StringType& default_extension,
87 bool can_save_as_complete, 87 bool can_save_as_complete,
88 content::SaveFilePathPickedCallback callback) OVERRIDE; 88 content::SaveFilePathPickedCallback callback) OVERRIDE;
89 virtual void DownloadProgressUpdated() OVERRIDE;
90 89
91 DownloadPrefs* download_prefs() { return download_prefs_.get(); } 90 DownloadPrefs* download_prefs() { return download_prefs_.get(); }
92 DownloadHistory* download_history() { return download_history_.get(); } 91 DownloadHistory* download_history() { return download_history_.get(); }
93 92
94 protected: 93 protected:
95 // So that test classes can inherit from this for override purposes. 94 // So that test classes can inherit from this for override purposes.
96 virtual ~ChromeDownloadManagerDelegate(); 95 virtual ~ChromeDownloadManagerDelegate();
97 96
98 // So that test classes that inherit from this for override purposes 97 // So that test classes that inherit from this for override purposes
99 // can call back into the DownloadManager. 98 // can call back into the DownloadManager.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // Maps from pending extension installations to DownloadItem IDs. 156 // Maps from pending extension installations to DownloadItem IDs.
158 typedef base::hash_map<CrxInstaller*, int> CrxInstallerMap; 157 typedef base::hash_map<CrxInstaller*, int> CrxInstallerMap;
159 CrxInstallerMap crx_installers_; 158 CrxInstallerMap crx_installers_;
160 159
161 content::NotificationRegistrar registrar_; 160 content::NotificationRegistrar registrar_;
162 161
163 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate); 162 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate);
164 }; 163 };
165 164
166 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ 165 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/download/chrome_download_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698