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

Side by Side Diff: chrome/browser/history/expire_history_backend.h

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months 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) 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
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_
OLDNEW
« no previous file with comments | « chrome/browser/google/google_url_tracker_unittest.cc ('k') | chrome/browser/history/expire_history_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698