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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 // database will not be affected (the URL will have to be deleted later). | 161 // database will not be affected (the URL will have to be deleted later). |
162 // | 162 // |
163 // Assumes the archived database is not NULL. | 163 // Assumes the archived database is not NULL. |
164 URLID ArchiveOneURL(const URLRow& url_row); | 164 URLID ArchiveOneURL(const URLRow& url_row); |
165 | 165 |
166 // Deletes all the URLs in the given vector and handles their dependencies. | 166 // Deletes all the URLs in the given vector and handles their dependencies. |
167 // This will delete starred URLs | 167 // This will delete starred URLs |
168 void DeleteURLs(const std::vector<URLRow>& urls, | 168 void DeleteURLs(const std::vector<URLRow>& urls, |
169 DeleteDependencies* dependencies); | 169 DeleteDependencies* dependencies); |
170 | 170 |
171 // Expiration involves removing visits, then propogating the visits out from | 171 // Expiration involves removing visits, then propagating the visits out from |
172 // there and delete any orphaned URLs. These will be added to the deleted URLs | 172 // there and delete any orphaned URLs. These will be added to the deleted URLs |
173 // field of the dependencies and DeleteOneURL will handle deleting out from | 173 // field of the dependencies and DeleteOneURL will handle deleting out from |
174 // there. This function does not handle favicons. | 174 // there. This function does not handle favicons. |
175 // | 175 // |
176 // When a URL is not deleted and |archive| is not set, the last visit time and | 176 // When a URL is not deleted and |archive| is not set, the last visit time and |
177 // the visit and typed counts will be updated (we want to clear these when a | 177 // the visit and typed counts will be updated (we want to clear these when a |
178 // user is deleting history manually, but not when we're normally expiring old | 178 // user is deleting history manually, but not when we're normally expiring old |
179 // things from history). | 179 // things from history). |
180 // | 180 // |
181 // The visits in the given vector should have already been deleted from the | 181 // The visits in the given vector should have already been deleted from the |
(...skipping 101 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 |