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_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 |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "chrome/browser/history/typed_url_syncable_service.h" | 26 #include "chrome/browser/history/typed_url_syncable_service.h" |
27 #include "chrome/common/ref_counted_util.h" | 27 #include "chrome/common/ref_counted_util.h" |
28 #include "components/favicon_base/favicon_callback.h" | 28 #include "components/favicon_base/favicon_callback.h" |
29 #include "components/history/core/browser/history_client.h" | 29 #include "components/history/core/browser/history_client.h" |
30 #include "components/history/core/browser/keyword_id.h" | 30 #include "components/history/core/browser/keyword_id.h" |
31 #include "components/keyed_service/core/keyed_service.h" | 31 #include "components/keyed_service/core/keyed_service.h" |
32 #include "components/visitedlink/browser/visitedlink_delegate.h" | 32 #include "components/visitedlink/browser/visitedlink_delegate.h" |
33 #include "content/public/browser/download_manager_delegate.h" | 33 #include "content/public/browser/download_manager_delegate.h" |
34 #include "content/public/browser/notification_observer.h" | 34 #include "content/public/browser/notification_observer.h" |
35 #include "content/public/browser/notification_registrar.h" | 35 #include "content/public/browser/notification_registrar.h" |
36 #include "content/public/common/page_transition_types.h" | |
37 #include "sql/init_status.h" | 36 #include "sql/init_status.h" |
38 #include "sync/api/syncable_service.h" | 37 #include "sync/api/syncable_service.h" |
| 38 #include "ui/base/page_transition_types.h" |
39 | 39 |
40 #if defined(OS_ANDROID) | 40 #if defined(OS_ANDROID) |
41 class AndroidHistoryProviderService; | 41 class AndroidHistoryProviderService; |
42 #endif | 42 #endif |
43 | 43 |
44 class GURL; | 44 class GURL; |
45 class PageUsageData; | 45 class PageUsageData; |
46 class PageUsageRequest; | 46 class PageUsageRequest; |
47 class Profile; | 47 class Profile; |
48 struct ImportedFaviconUsage; | 48 struct ImportedFaviconUsage; |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 // replaced the existing entry. A non-user initiated redirect causes such | 175 // replaced the existing entry. A non-user initiated redirect causes such |
176 // replacement. | 176 // replacement. |
177 // | 177 // |
178 // All "Add Page" functions will update the visited link database. | 178 // All "Add Page" functions will update the visited link database. |
179 void AddPage(const GURL& url, | 179 void AddPage(const GURL& url, |
180 base::Time time, | 180 base::Time time, |
181 history::ContextID context_id, | 181 history::ContextID context_id, |
182 int32 page_id, | 182 int32 page_id, |
183 const GURL& referrer, | 183 const GURL& referrer, |
184 const history::RedirectList& redirects, | 184 const history::RedirectList& redirects, |
185 content::PageTransition transition, | 185 ui::PageTransition transition, |
186 history::VisitSource visit_source, | 186 history::VisitSource visit_source, |
187 bool did_replace_entry); | 187 bool did_replace_entry); |
188 | 188 |
189 // For adding pages to history where no tracking information can be done. | 189 // For adding pages to history where no tracking information can be done. |
190 void AddPage(const GURL& url, | 190 void AddPage(const GURL& url, |
191 base::Time time, | 191 base::Time time, |
192 history::VisitSource visit_source); | 192 history::VisitSource visit_source); |
193 | 193 |
194 // All AddPage variants end up here. | 194 // All AddPage variants end up here. |
195 void AddPage(const history::HistoryAddPageArgs& add_page_args); | 195 void AddPage(const history::HistoryAddPageArgs& add_page_args); |
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
880 | 880 |
881 history::DeleteDirectiveHandler delete_directive_handler_; | 881 history::DeleteDirectiveHandler delete_directive_handler_; |
882 | 882 |
883 // All vended weak pointers are invalidated in Cleanup(). | 883 // All vended weak pointers are invalidated in Cleanup(). |
884 base::WeakPtrFactory<HistoryService> weak_ptr_factory_; | 884 base::WeakPtrFactory<HistoryService> weak_ptr_factory_; |
885 | 885 |
886 DISALLOW_COPY_AND_ASSIGN(HistoryService); | 886 DISALLOW_COPY_AND_ASSIGN(HistoryService); |
887 }; | 887 }; |
888 | 888 |
889 #endif // CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ | 889 #endif // CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ |
OLD | NEW |