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_BACKEND_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 virtual void SetPageTitle(const GURL& url, const base::string16& title); | 209 virtual void SetPageTitle(const GURL& url, const base::string16& title); |
210 void AddPageNoVisitForBookmark(const GURL& url, const base::string16& title); | 210 void AddPageNoVisitForBookmark(const GURL& url, const base::string16& title); |
211 void UpdateWithPageEndTime(ContextID context_id, | 211 void UpdateWithPageEndTime(ContextID context_id, |
212 int nav_entry_id, | 212 int nav_entry_id, |
213 const GURL& url, | 213 const GURL& url, |
214 base::Time end_ts); | 214 base::Time end_ts); |
215 | 215 |
216 // Querying ------------------------------------------------------------------ | 216 // Querying ------------------------------------------------------------------ |
217 | 217 |
218 // Run the |callback| on the History thread. | 218 // Run the |callback| on the History thread. |
219 // history_url_provider.h has the temporal ordering for | |
220 // the call sequence. | |
221 // |callback| should handle the NULL database case. | 219 // |callback| should handle the NULL database case. |
222 void ScheduleAutocomplete(const base::Callback< | 220 void ScheduleAutocomplete(const base::Callback< |
223 void(history::HistoryBackend*, history::URLDatabase*)>& callback); | 221 void(history::HistoryBackend*, history::URLDatabase*)>& callback); |
224 | 222 |
225 void IterateURLs( | 223 void IterateURLs( |
226 const scoped_refptr<visitedlink::VisitedLinkDelegate::URLEnumerator>& | 224 const scoped_refptr<visitedlink::VisitedLinkDelegate::URLEnumerator>& |
227 enumerator); | 225 enumerator); |
228 void QueryURL(const GURL& url, | 226 void QueryURL(const GURL& url, |
229 bool want_visits, | 227 bool want_visits, |
230 QueryURLResult* query_url_result); | 228 QueryURLResult* query_url_result); |
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
923 | 921 |
924 // List of observers | 922 // List of observers |
925 ObserverList<HistoryBackendObserver> observers_; | 923 ObserverList<HistoryBackendObserver> observers_; |
926 | 924 |
927 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 925 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
928 }; | 926 }; |
929 | 927 |
930 } // namespace history | 928 } // namespace history |
931 | 929 |
932 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 930 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
OLD | NEW |