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

Unified Diff: content/browser/download/mock_download_manager_delegate.h

Issue 8060042: Add downloads.onCreated apitest and fix a few bugs (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: merge Created 9 years, 2 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: content/browser/download/mock_download_manager_delegate.h
diff --git a/content/browser/download/mock_download_manager_delegate.h b/content/browser/download/mock_download_manager_delegate.h
index b2fbfc2e6f76f3c02d2641fcd3f2e9e9cbd00bdf..5d9f87f70d2ea8adc159440cc8c0ffff9f0f314f 100644
--- a/content/browser/download/mock_download_manager_delegate.h
+++ b/content/browser/download/mock_download_manager_delegate.h
@@ -9,9 +9,13 @@
#include "base/compiler_specific.h"
#include "content/public/browser/download_manager_delegate.h"
+class DownloadManager;
+
class MockDownloadManagerDelegate : public content::DownloadManagerDelegate {
public:
+ MockDownloadManagerDelegate();
virtual ~MockDownloadManagerDelegate();
+ void SetDownloadManager(DownloadManager* dm);
virtual void Shutdown() OVERRIDE;
virtual bool ShouldStartDownload(int32 download_id) OVERRIDE;
virtual void ChooseDownloadPath(TabContents* tab_contents,
@@ -42,6 +46,9 @@ class MockDownloadManagerDelegate : public content::DownloadManagerDelegate {
const FilePath& suggested_path,
bool can_save_as_complete) OVERRIDE;
virtual void DownloadProgressUpdated() OVERRIDE;
+
+ private:
+ scoped_refptr<DownloadManager> download_manager_;
};
#endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_DELEGATE_H_
« no previous file with comments | « content/browser/download/download_request_handle.cc ('k') | content/browser/download/mock_download_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698