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

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

Issue 872313005: Remove dependency on visitedlink from history (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@init-prefs
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
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_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>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/containers/mru_cache.h" 13 #include "base/containers/mru_cache.h"
14 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "base/gtest_prod_util.h" 15 #include "base/gtest_prod_util.h"
16 #include "base/memory/memory_pressure_listener.h" 16 #include "base/memory/memory_pressure_listener.h"
17 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
18 #include "base/observer_list.h" 18 #include "base/observer_list.h"
19 #include "base/single_thread_task_runner.h" 19 #include "base/single_thread_task_runner.h"
20 #include "base/task/cancelable_task_tracker.h" 20 #include "base/task/cancelable_task_tracker.h"
21 #include "components/history/core/browser/expire_history_backend.h" 21 #include "components/history/core/browser/expire_history_backend.h"
22 #include "components/history/core/browser/history_backend_notifier.h" 22 #include "components/history/core/browser/history_backend_notifier.h"
23 #include "components/history/core/browser/history_types.h" 23 #include "components/history/core/browser/history_types.h"
24 #include "components/history/core/browser/keyword_id.h" 24 #include "components/history/core/browser/keyword_id.h"
25 #include "components/history/core/browser/thumbnail_database.h" 25 #include "components/history/core/browser/thumbnail_database.h"
26 #include "components/history/core/browser/visit_tracker.h" 26 #include "components/history/core/browser/visit_tracker.h"
27 #include "components/visitedlink/browser/visitedlink_delegate.h"
28 #include "sql/init_status.h" 27 #include "sql/init_status.h"
29 28
30 #if defined(OS_ANDROID) 29 #if defined(OS_ANDROID)
31 #include "components/history/core/browser/android/android_history_types.h" 30 #include "components/history/core/browser/android/android_history_types.h"
32 #endif 31 #endif
33 32
34 class HistoryURLProvider; 33 class HistoryURLProvider;
35 struct HistoryURLProviderParams; 34 struct HistoryURLProviderParams;
36 struct ImportedFaviconUsage; 35 struct ImportedFaviconUsage;
37 class SkBitmap; 36 class SkBitmap;
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 214
216 // Querying ------------------------------------------------------------------ 215 // Querying ------------------------------------------------------------------
217 216
218 // Run the |callback| on the History thread. 217 // Run the |callback| on the History thread.
219 // history_url_provider.h has the temporal ordering for 218 // history_url_provider.h has the temporal ordering for
220 // the call sequence. 219 // the call sequence.
221 // |callback| should handle the NULL database case. 220 // |callback| should handle the NULL database case.
222 void ScheduleAutocomplete(const base::Callback< 221 void ScheduleAutocomplete(const base::Callback<
223 void(history::HistoryBackend*, history::URLDatabase*)>& callback); 222 void(history::HistoryBackend*, history::URLDatabase*)>& callback);
224 223
225 void IterateURLs(
226 const scoped_refptr<visitedlink::VisitedLinkDelegate::URLEnumerator>&
227 enumerator);
228 void QueryURL(const GURL& url, 224 void QueryURL(const GURL& url,
229 bool want_visits, 225 bool want_visits,
230 QueryURLResult* query_url_result); 226 QueryURLResult* query_url_result);
231 void QueryHistory(const base::string16& text_query, 227 void QueryHistory(const base::string16& text_query,
232 const QueryOptions& options, 228 const QueryOptions& options,
233 QueryResults* query_results); 229 QueryResults* query_results);
234 230
235 // Computes the most recent URL(s) that the given canonical URL has 231 // Computes the most recent URL(s) that the given canonical URL has
236 // redirected to. There may be more than one redirect in a row, so this 232 // redirected to. There may be more than one redirect in a row, so this
237 // function will fill the given array with the entire chain. If there are 233 // function will fill the given array with the entire chain. If there are
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after
923 919
924 // List of observers 920 // List of observers
925 ObserverList<HistoryBackendObserver> observers_; 921 ObserverList<HistoryBackendObserver> observers_;
926 922
927 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); 923 DISALLOW_COPY_AND_ASSIGN(HistoryBackend);
928 }; 924 };
929 925
930 } // namespace history 926 } // namespace history
931 927
932 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ 928 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698