OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_HISTORY_EXPIRE_HISTORY_BACKEND_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_EXPIRE_HISTORY_BACKEND_H_ |
6 #define CHROME_BROWSER_HISTORY_EXPIRE_HISTORY_BACKEND_H_ | 6 #define CHROME_BROWSER_HISTORY_EXPIRE_HISTORY_BACKEND_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <queue> | 9 #include <queue> |
10 #include <set> | 10 #include <set> |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 // by the given visits. It will then add versions of the visits to that | 192 // by the given visits. It will then add versions of the visits to that |
193 // database. The source database WILL NOT BE MODIFIED. The source URLs and | 193 // database. The source database WILL NOT BE MODIFIED. The source URLs and |
194 // visits will have to be deleted in another pass. | 194 // visits will have to be deleted in another pass. |
195 // | 195 // |
196 // The affected URLs will be filled into the given dependencies structure. | 196 // The affected URLs will be filled into the given dependencies structure. |
197 void ArchiveURLsAndVisits(const VisitVector& visits, | 197 void ArchiveURLsAndVisits(const VisitVector& visits, |
198 DeleteDependencies* dependencies); | 198 DeleteDependencies* dependencies); |
199 | 199 |
200 // Deletes the favicons listed in the set if unused. Fails silently (we don't | 200 // Deletes the favicons listed in the set if unused. Fails silently (we don't |
201 // care about favicons so much, so don't want to stop everything if it fails). | 201 // care about favicons so much, so don't want to stop everything if it fails). |
202 void DeleteFaviconsIfPossible(const std::set<FavIconID>& favicon_id); | 202 void DeleteFaviconsIfPossible(const std::set<FaviconID>& favicon_id); |
203 | 203 |
204 // Broadcast the URL deleted notification. | 204 // Broadcast the URL deleted notification. |
205 void BroadcastDeleteNotifications(DeleteDependencies* dependencies); | 205 void BroadcastDeleteNotifications(DeleteDependencies* dependencies); |
206 | 206 |
207 // Schedules a call to DoArchiveIteration. | 207 // Schedules a call to DoArchiveIteration. |
208 void ScheduleArchive(); | 208 void ScheduleArchive(); |
209 | 209 |
210 // Calls ArchiveSomeOldHistory to expire some amount of old history, according | 210 // Calls ArchiveSomeOldHistory to expire some amount of old history, according |
211 // to the items in work queue, and schedules another call to happen in the | 211 // to the items in work queue, and schedules another call to happen in the |
212 // future. | 212 // future. |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 // Use GetBookmarkService to access this, which makes sure the service is | 283 // Use GetBookmarkService to access this, which makes sure the service is |
284 // loaded. | 284 // loaded. |
285 BookmarkService* bookmark_service_; | 285 BookmarkService* bookmark_service_; |
286 | 286 |
287 DISALLOW_COPY_AND_ASSIGN(ExpireHistoryBackend); | 287 DISALLOW_COPY_AND_ASSIGN(ExpireHistoryBackend); |
288 }; | 288 }; |
289 | 289 |
290 } // namespace history | 290 } // namespace history |
291 | 291 |
292 #endif // CHROME_BROWSER_HISTORY_EXPIRE_HISTORY_BACKEND_H_ | 292 #endif // CHROME_BROWSER_HISTORY_EXPIRE_HISTORY_BACKEND_H_ |
OLD | NEW |