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

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

Issue 339433007: Componentize URLDatabase (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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
« no previous file with comments | « chrome/browser/history/history_database.h ('k') | chrome/browser/history/history_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_HISTORY_SERVICE_H_ 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_
6 #define CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ 6 #define CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
18 #include "base/memory/weak_ptr.h" 18 #include "base/memory/weak_ptr.h"
19 #include "base/observer_list.h" 19 #include "base/observer_list.h"
20 #include "base/strings/string16.h" 20 #include "base/strings/string16.h"
21 #include "base/task/cancelable_task_tracker.h" 21 #include "base/task/cancelable_task_tracker.h"
22 #include "base/threading/thread_checker.h" 22 #include "base/threading/thread_checker.h"
23 #include "base/time/time.h" 23 #include "base/time/time.h"
24 #include "chrome/browser/common/cancelable_request.h" 24 #include "chrome/browser/common/cancelable_request.h"
25 #include "chrome/browser/history/delete_directive_handler.h" 25 #include "chrome/browser/history/delete_directive_handler.h"
26 #include "chrome/browser/history/history_types.h"
27 #include "chrome/browser/history/typed_url_syncable_service.h" 26 #include "chrome/browser/history/typed_url_syncable_service.h"
28 #include "chrome/common/ref_counted_util.h" 27 #include "chrome/common/ref_counted_util.h"
29 #include "components/favicon_base/favicon_callback.h" 28 #include "components/favicon_base/favicon_callback.h"
30 #include "components/history/core/browser/history_client.h" 29 #include "components/history/core/browser/history_client.h"
31 #include "components/history/core/browser/keyword_id.h" 30 #include "components/history/core/browser/keyword_id.h"
32 #include "components/keyed_service/core/keyed_service.h" 31 #include "components/keyed_service/core/keyed_service.h"
33 #include "components/visitedlink/browser/visitedlink_delegate.h" 32 #include "components/visitedlink/browser/visitedlink_delegate.h"
34 #include "content/public/browser/download_manager_delegate.h" 33 #include "content/public/browser/download_manager_delegate.h"
35 #include "content/public/browser/notification_observer.h" 34 #include "content/public/browser/notification_observer.h"
36 #include "content/public/browser/notification_registrar.h" 35 #include "content/public/browser/notification_registrar.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 class HistoryQueryTest; 67 class HistoryQueryTest;
69 class InMemoryHistoryBackend; 68 class InMemoryHistoryBackend;
70 class InMemoryURLIndex; 69 class InMemoryURLIndex;
71 class InMemoryURLIndexTest; 70 class InMemoryURLIndexTest;
72 class URLDatabase; 71 class URLDatabase;
73 class VisitDatabaseObserver; 72 class VisitDatabaseObserver;
74 class VisitFilter; 73 class VisitFilter;
75 struct DownloadRow; 74 struct DownloadRow;
76 struct HistoryAddPageArgs; 75 struct HistoryAddPageArgs;
77 struct HistoryDetails; 76 struct HistoryDetails;
77 struct KeywordSearchTermVisit;
78 78
79 } // namespace history 79 } // namespace history
80 80
81 // The history service records page titles, and visit times, as well as 81 // The history service records page titles, and visit times, as well as
82 // (eventually) information about autocomplete. 82 // (eventually) information about autocomplete.
83 // 83 //
84 // This service is thread safe. Each request callback is invoked in the 84 // This service is thread safe. Each request callback is invoked in the
85 // thread that made the request. 85 // thread that made the request.
86 class HistoryService : public CancelableRequestProvider, 86 class HistoryService : public CancelableRequestProvider,
87 public content::NotificationObserver, 87 public content::NotificationObserver,
(...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after
1033 scoped_ptr<history::InMemoryURLIndex> in_memory_url_index_; 1033 scoped_ptr<history::InMemoryURLIndex> in_memory_url_index_;
1034 1034
1035 ObserverList<history::VisitDatabaseObserver> visit_database_observers_; 1035 ObserverList<history::VisitDatabaseObserver> visit_database_observers_;
1036 1036
1037 history::DeleteDirectiveHandler delete_directive_handler_; 1037 history::DeleteDirectiveHandler delete_directive_handler_;
1038 1038
1039 DISALLOW_COPY_AND_ASSIGN(HistoryService); 1039 DISALLOW_COPY_AND_ASSIGN(HistoryService);
1040 }; 1040 };
1041 1041
1042 #endif // CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ 1042 #endif // CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/history_database.h ('k') | chrome/browser/history/history_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698