| OLD | NEW |
| 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_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 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 class ThumbnailDatabase; | 29 class ThumbnailDatabase; |
| 30 | 30 |
| 31 // Delegate used to broadcast notifications to the main thread. | 31 // Delegate used to broadcast notifications to the main thread. |
| 32 class BroadcastNotificationDelegate { | 32 class BroadcastNotificationDelegate { |
| 33 public: | 33 public: |
| 34 // Schedules a broadcast of the given notification on the application main | 34 // Schedules a broadcast of the given notification on the application main |
| 35 // thread. The details argument will have ownership taken by this function. | 35 // thread. The details argument will have ownership taken by this function. |
| 36 virtual void BroadcastNotifications(int type, | 36 virtual void BroadcastNotifications(int type, |
| 37 HistoryDetails* details_deleted) = 0; | 37 HistoryDetails* details_deleted) = 0; |
| 38 | 38 |
| 39 // Trigger handling of deleted urls in typed url sync code |
| 40 virtual void NotifySyncURLsDeleted(bool all_history, |
| 41 bool archived, |
| 42 URLRows* rows) = 0; |
| 43 |
| 39 protected: | 44 protected: |
| 40 virtual ~BroadcastNotificationDelegate() {} | 45 virtual ~BroadcastNotificationDelegate() {} |
| 41 }; | 46 }; |
| 42 | 47 |
| 43 // Encapsulates visit expiration criteria and type of visits to expire. | 48 // Encapsulates visit expiration criteria and type of visits to expire. |
| 44 class ExpiringVisitsReader { | 49 class ExpiringVisitsReader { |
| 45 public: | 50 public: |
| 46 virtual ~ExpiringVisitsReader() {} | 51 virtual ~ExpiringVisitsReader() {} |
| 47 // Populates |visits| from |db|, using provided |end_time| and |max_visits| | 52 // Populates |visits| from |db|, using provided |end_time| and |max_visits| |
| 48 // cap. | 53 // cap. |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 // Use GetBookmarkService to access this, which makes sure the service is | 299 // Use GetBookmarkService to access this, which makes sure the service is |
| 295 // loaded. | 300 // loaded. |
| 296 BookmarkService* bookmark_service_; | 301 BookmarkService* bookmark_service_; |
| 297 | 302 |
| 298 DISALLOW_COPY_AND_ASSIGN(ExpireHistoryBackend); | 303 DISALLOW_COPY_AND_ASSIGN(ExpireHistoryBackend); |
| 299 }; | 304 }; |
| 300 | 305 |
| 301 } // namespace history | 306 } // namespace history |
| 302 | 307 |
| 303 #endif // CHROME_BROWSER_HISTORY_EXPIRE_HISTORY_BACKEND_H_ | 308 #endif // CHROME_BROWSER_HISTORY_EXPIRE_HISTORY_BACKEND_H_ |
| OLD | NEW |