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

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

Issue 896093004: Cleanup usage of history namespace in components/history (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/jumplist_win.h » ('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 <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 21 matching lines...) Expand all
32 #include "components/visitedlink/browser/visitedlink_delegate.h" 32 #include "components/visitedlink/browser/visitedlink_delegate.h"
33 #include "sql/init_status.h" 33 #include "sql/init_status.h"
34 #include "sync/api/syncable_service.h" 34 #include "sync/api/syncable_service.h"
35 #include "ui/base/page_transition_types.h" 35 #include "ui/base/page_transition_types.h"
36 36
37 #if defined(OS_ANDROID) 37 #if defined(OS_ANDROID)
38 class AndroidHistoryProviderService; 38 class AndroidHistoryProviderService;
39 #endif 39 #endif
40 40
41 class GURL; 41 class GURL;
42 class PageUsageData;
43 class PageUsageRequest; 42 class PageUsageRequest;
44 class Profile; 43 class Profile;
45 struct ImportedFaviconUsage; 44 struct ImportedFaviconUsage;
46 class SkBitmap; 45 class SkBitmap;
47 46
48 namespace base { 47 namespace base {
49 class FilePath; 48 class FilePath;
50 class Thread; 49 class Thread;
51 } 50 }
52 51
53 namespace visitedlink { 52 namespace visitedlink {
54 class VisitedLinkMaster; 53 class VisitedLinkMaster;
55 } 54 }
56 55
57 namespace history { 56 namespace history {
58 57
58 struct DownloadRow;
59 struct HistoryAddPageArgs;
59 class HistoryBackend; 60 class HistoryBackend;
60 class HistoryClient; 61 class HistoryClient;
62 class HistoryDBTask;
61 class HistoryDatabase; 63 class HistoryDatabase;
62 struct HistoryDatabaseParams; 64 struct HistoryDatabaseParams;
63 class HistoryDBTask;
64 class HistoryQueryTest; 65 class HistoryQueryTest;
65 class HistoryServiceObserver; 66 class HistoryServiceObserver;
66 class HistoryTest; 67 class HistoryTest;
67 class InMemoryHistoryBackend; 68 class InMemoryHistoryBackend;
68 class InMemoryURLIndex; 69 class InMemoryURLIndex;
69 class InMemoryURLIndexTest; 70 class InMemoryURLIndexTest;
71 struct KeywordSearchTermVisit;
72 class PageUsageData;
70 class URLDatabase; 73 class URLDatabase;
71 class VisitFilter; 74 class VisitFilter;
72 struct DownloadRow;
73 struct HistoryAddPageArgs;
74 struct KeywordSearchTermVisit;
75 75
76 } // namespace history 76 } // namespace history
77 77
78 // The history service records page titles, and visit times, as well as 78 // The history service records page titles, and visit times, as well as
79 // (eventually) information about autocomplete. 79 // (eventually) information about autocomplete.
80 // 80 //
81 // This service is thread safe. Each request callback is invoked in the 81 // This service is thread safe. Each request callback is invoked in the
82 // thread that made the request. 82 // thread that made the request.
83 class HistoryService : public syncer::SyncableService, 83 class HistoryService : public syncer::SyncableService,
84 public KeyedService, 84 public KeyedService,
85 public visitedlink::VisitedLinkDelegate { 85 public visitedlink::VisitedLinkDelegate {
86 public: 86 public:
87 // Miscellaneous commonly-used types. 87 // Miscellaneous commonly-used types.
88 typedef std::vector<PageUsageData*> PageUsageDataList; 88 typedef std::vector<history::PageUsageData*> PageUsageDataList;
89 89
90 // Must call Init after construction. The |history::HistoryClient| object 90 // Must call Init after construction. The |history::HistoryClient| object
91 // must be valid for the whole lifetime of |HistoryService|. 91 // must be valid for the whole lifetime of |HistoryService|.
92 HistoryService(history::HistoryClient* client, Profile* profile); 92 HistoryService(history::HistoryClient* client, Profile* profile);
93 // The empty constructor is provided only for testing. 93 // The empty constructor is provided only for testing.
94 HistoryService(); 94 HistoryService();
95 95
96 ~HistoryService() override; 96 ~HistoryService() override;
97 97
98 // Initializes the history service, returning true on success. On false, do 98 // Initializes the history service, returning true on success. On false, do
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 842
843 history::DeleteDirectiveHandler delete_directive_handler_; 843 history::DeleteDirectiveHandler delete_directive_handler_;
844 844
845 // All vended weak pointers are invalidated in Cleanup(). 845 // All vended weak pointers are invalidated in Cleanup().
846 base::WeakPtrFactory<HistoryService> weak_ptr_factory_; 846 base::WeakPtrFactory<HistoryService> weak_ptr_factory_;
847 847
848 DISALLOW_COPY_AND_ASSIGN(HistoryService); 848 DISALLOW_COPY_AND_ASSIGN(HistoryService);
849 }; 849 };
850 850
851 #endif // CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ 851 #endif // CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/jumplist_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698