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

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

Issue 7796014: Make cancel remove cancelled download from active queues at time of cancel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Final Cancel arg fix. Created 9 years, 3 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 virtual TabContents* GetAlternativeTabContentsToNotifyForDownload() OVERRIDE; 59 virtual TabContents* GetAlternativeTabContentsToNotifyForDownload() OVERRIDE;
60 virtual bool ShouldOpenFileBasedOnExtension(const FilePath& path) OVERRIDE; 60 virtual bool ShouldOpenFileBasedOnExtension(const FilePath& path) OVERRIDE;
61 virtual bool ShouldOpenDownload(DownloadItem* item) OVERRIDE; 61 virtual bool ShouldOpenDownload(DownloadItem* item) OVERRIDE;
62 virtual bool ShouldCompleteDownload(DownloadItem* item) OVERRIDE; 62 virtual bool ShouldCompleteDownload(DownloadItem* item) OVERRIDE;
63 virtual bool GenerateFileHash() OVERRIDE; 63 virtual bool GenerateFileHash() OVERRIDE;
64 virtual void AddItemToPersistentStore(DownloadItem* item) OVERRIDE; 64 virtual void AddItemToPersistentStore(DownloadItem* item) OVERRIDE;
65 virtual void UpdateItemInPersistentStore(DownloadItem* item) OVERRIDE; 65 virtual void UpdateItemInPersistentStore(DownloadItem* item) OVERRIDE;
66 virtual void UpdatePathForItemInPersistentStore( 66 virtual void UpdatePathForItemInPersistentStore(
67 DownloadItem* item, 67 DownloadItem* item,
68 const FilePath& new_path) OVERRIDE; 68 const FilePath& new_path) OVERRIDE;
69 virtual void RemoveItemFromPersistentStore(DownloadItem* item) OVERRIDE; 69 virtual void RemoveItemFromPersistentStore(int64 db_handle) OVERRIDE;
70 virtual void RemoveItemsFromPersistentStoreBetween( 70 virtual void RemoveItemsFromPersistentStoreBetween(
71 const base::Time remove_begin, 71 const base::Time remove_begin,
72 const base::Time remove_end) OVERRIDE; 72 const base::Time remove_end) OVERRIDE;
73 virtual void GetSaveDir(TabContents* tab_contents, 73 virtual void GetSaveDir(TabContents* tab_contents,
74 FilePath* website_save_dir, 74 FilePath* website_save_dir,
75 FilePath* download_save_dir) OVERRIDE; 75 FilePath* download_save_dir) OVERRIDE;
76 virtual void ChooseSavePath(const base::WeakPtr<SavePackage>& save_package, 76 virtual void ChooseSavePath(const base::WeakPtr<SavePackage>& save_package,
77 const FilePath& suggested_path, 77 const FilePath& suggested_path,
78 bool can_save_as_complete) OVERRIDE; 78 bool can_save_as_complete) OVERRIDE;
79 virtual void DownloadProgressUpdated() OVERRIDE; 79 virtual void DownloadProgressUpdated() OVERRIDE;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 // Maps from pending extension installations to DownloadItem IDs. 135 // Maps from pending extension installations to DownloadItem IDs.
136 typedef base::hash_map<CrxInstaller*, int> CrxInstallerMap; 136 typedef base::hash_map<CrxInstaller*, int> CrxInstallerMap;
137 CrxInstallerMap crx_installers_; 137 CrxInstallerMap crx_installers_;
138 138
139 NotificationRegistrar registrar_; 139 NotificationRegistrar registrar_;
140 140
141 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate); 141 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate);
142 }; 142 };
143 143
144 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ 144 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698