| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/task.h" | 16 #include "base/task.h" |
| 17 #include "base/time.h" | 17 #include "base/time.h" |
| 18 #include "chrome/browser/history/history_types.h" | 18 #include "chrome/browser/history/history_types.h" |
| 19 | 19 |
| 20 class BookmarkService; | 20 class BookmarkService; |
| 21 class GURL; | 21 class GURL; |
| 22 class NotificationType; | |
| 23 class TestingProfile; | 22 class TestingProfile; |
| 24 | 23 |
| 25 namespace history { | 24 namespace history { |
| 26 | 25 |
| 27 class ArchivedDatabase; | 26 class ArchivedDatabase; |
| 28 class HistoryDatabase; | 27 class HistoryDatabase; |
| 29 struct HistoryDetails; | 28 struct HistoryDetails; |
| 30 class TextDatabaseManager; | 29 class TextDatabaseManager; |
| 31 class ThumbnailDatabase; | 30 class ThumbnailDatabase; |
| 32 | 31 |
| 33 // Delegate used to broadcast notifications to the main thread. | 32 // Delegate used to broadcast notifications to the main thread. |
| 34 class BroadcastNotificationDelegate { | 33 class BroadcastNotificationDelegate { |
| 35 public: | 34 public: |
| 36 // Schedules a broadcast of the given notification on the application main | 35 // Schedules a broadcast of the given notification on the application main |
| 37 // thread. The details argument will have ownership taken by this function. | 36 // thread. The details argument will have ownership taken by this function. |
| 38 virtual void BroadcastNotifications(NotificationType type, | 37 virtual void BroadcastNotifications(int type, |
| 39 HistoryDetails* details_deleted) = 0; | 38 HistoryDetails* details_deleted) = 0; |
| 40 | 39 |
| 41 protected: | 40 protected: |
| 42 virtual ~BroadcastNotificationDelegate() {} | 41 virtual ~BroadcastNotificationDelegate() {} |
| 43 }; | 42 }; |
| 44 | 43 |
| 45 // Encapsulates visit expiration criteria and type of visits to expire. | 44 // Encapsulates visit expiration criteria and type of visits to expire. |
| 46 class ExpiringVisitsReader { | 45 class ExpiringVisitsReader { |
| 47 public: | 46 public: |
| 48 virtual ~ExpiringVisitsReader() {} | 47 virtual ~ExpiringVisitsReader() {} |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 // Use GetBookmarkService to access this, which makes sure the service is | 286 // Use GetBookmarkService to access this, which makes sure the service is |
| 288 // loaded. | 287 // loaded. |
| 289 BookmarkService* bookmark_service_; | 288 BookmarkService* bookmark_service_; |
| 290 | 289 |
| 291 DISALLOW_COPY_AND_ASSIGN(ExpireHistoryBackend); | 290 DISALLOW_COPY_AND_ASSIGN(ExpireHistoryBackend); |
| 292 }; | 291 }; |
| 293 | 292 |
| 294 } // namespace history | 293 } // namespace history |
| 295 | 294 |
| 296 #endif // CHROME_BROWSER_HISTORY_EXPIRE_HISTORY_BACKEND_H_ | 295 #endif // CHROME_BROWSER_HISTORY_EXPIRE_HISTORY_BACKEND_H_ |
| OLD | NEW |