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

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

Issue 11363222: Persist download interrupt reason, both target and current paths, and url_chain. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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) 2012 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 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 const base::Closure& complete_callback) OVERRIDE; 75 const base::Closure& complete_callback) OVERRIDE;
76 virtual bool ShouldOpenDownload( 76 virtual bool ShouldOpenDownload(
77 content::DownloadItem* item, 77 content::DownloadItem* item,
78 const content::DownloadOpenDelayedCallback& callback) OVERRIDE; 78 const content::DownloadOpenDelayedCallback& callback) OVERRIDE;
79 virtual bool GenerateFileHash() OVERRIDE; 79 virtual bool GenerateFileHash() OVERRIDE;
80 virtual void AddItemToPersistentStore(content::DownloadItem* item) OVERRIDE; 80 virtual void AddItemToPersistentStore(content::DownloadItem* item) OVERRIDE;
81 virtual void UpdateItemInPersistentStore( 81 virtual void UpdateItemInPersistentStore(
82 content::DownloadItem* item) OVERRIDE; 82 content::DownloadItem* item) OVERRIDE;
83 virtual void UpdatePathForItemInPersistentStore( 83 virtual void UpdatePathForItemInPersistentStore(
84 content::DownloadItem* item, 84 content::DownloadItem* item,
85 const FilePath& new_path) OVERRIDE; 85 const FilePath& target_path,
86 const FilePath& current_path) OVERRIDE;
86 virtual void RemoveItemFromPersistentStore( 87 virtual void RemoveItemFromPersistentStore(
87 content::DownloadItem* item) OVERRIDE; 88 content::DownloadItem* item) OVERRIDE;
88 virtual void RemoveItemsFromPersistentStoreBetween( 89 virtual void RemoveItemsFromPersistentStoreBetween(
89 base::Time remove_begin, 90 base::Time remove_begin,
90 base::Time remove_end) OVERRIDE; 91 base::Time remove_end) OVERRIDE;
91 virtual void GetSaveDir(content::BrowserContext* browser_context, 92 virtual void GetSaveDir(content::BrowserContext* browser_context,
92 FilePath* website_save_dir, 93 FilePath* website_save_dir,
93 FilePath* download_save_dir, 94 FilePath* download_save_dir,
94 bool* skip_dir_check) OVERRIDE; 95 bool* skip_dir_check) OVERRIDE;
95 virtual void ChooseSavePath( 96 virtual void ChooseSavePath(
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 #endif 261 #endif
261 262
262 // The directory most recently chosen by the user in response to a Save As 263 // The directory most recently chosen by the user in response to a Save As
263 // dialog for a regular download. 264 // dialog for a regular download.
264 FilePath last_download_path_; 265 FilePath last_download_path_;
265 266
266 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate); 267 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate);
267 }; 268 };
268 269
269 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ 270 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698