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

Side by Side Diff: chrome/browser/download/download_history.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_DOWNLOAD_HISTORY_H_ 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_HISTORY_H_
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_HISTORY_H_ 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_HISTORY_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 const GURL& referrer_url, 44 const GURL& referrer_url,
45 const VisitedBeforeDoneCallback& callback); 45 const VisitedBeforeDoneCallback& callback);
46 46
47 // Adds a new entry for a download to the history database. 47 // Adds a new entry for a download to the history database.
48 void AddEntry(content::DownloadItem* download_item, 48 void AddEntry(content::DownloadItem* download_item,
49 const HistoryService::DownloadCreateCallback& callback); 49 const HistoryService::DownloadCreateCallback& callback);
50 50
51 // Updates the history entry for |download_item|. 51 // Updates the history entry for |download_item|.
52 void UpdateEntry(content::DownloadItem* download_item); 52 void UpdateEntry(content::DownloadItem* download_item);
53 53
54 // Updates the download path for |download_item| to |new_path|. 54 // Updates the download paths for |download_item|.
55 void UpdateDownloadPath(content::DownloadItem* download_item, 55 void UpdateDownloadPath(content::DownloadItem* download_item,
56 const FilePath& new_path); 56 const FilePath& target_path,
57 const FilePath& current_path);
57 58
58 // Removes |download_item| from the history database. 59 // Removes |download_item| from the history database.
59 void RemoveEntry(content::DownloadItem* download_item); 60 void RemoveEntry(content::DownloadItem* download_item);
60 61
61 // Removes download-related history entries in the given time range. 62 // Removes download-related history entries in the given time range.
62 void RemoveEntriesBetween(const base::Time remove_begin, 63 void RemoveEntriesBetween(const base::Time remove_begin,
63 const base::Time remove_end); 64 const base::Time remove_end);
64 65
65 // Returns a new unique database handle which will not collide with real ones. 66 // Returns a new unique database handle which will not collide with real ones.
66 int64 GetNextFakeDbHandle(); 67 int64 GetNextFakeDbHandle();
(...skipping 17 matching lines...) Expand all
84 85
85 CancelableRequestConsumer history_consumer_; 86 CancelableRequestConsumer history_consumer_;
86 87
87 // The outstanding requests made by CheckVisitedReferrerBefore(). 88 // The outstanding requests made by CheckVisitedReferrerBefore().
88 VisitedBeforeRequestsMap visited_before_requests_; 89 VisitedBeforeRequestsMap visited_before_requests_;
89 90
90 DISALLOW_COPY_AND_ASSIGN(DownloadHistory); 91 DISALLOW_COPY_AND_ASSIGN(DownloadHistory);
91 }; 92 };
92 93
93 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_HISTORY_H_ 94 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_HISTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698