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

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

Issue 584013002: Componentize history_types.{cc,h} and android_history_types.{cc,h} (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 2 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 | « chrome/browser/history/history_notifications.h ('k') | chrome/browser/history/history_types.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 // The history system runs on a background thread so that potentially slow 5 // The history system runs on a background thread so that potentially slow
6 // database operations don't delay the browser. This backend processing is 6 // database operations don't delay the browser. This backend processing is
7 // represented by HistoryBackend. The HistoryService's job is to dispatch to 7 // represented by HistoryBackend. The HistoryService's job is to dispatch to
8 // that thread. 8 // that thread.
9 // 9 //
10 // Main thread History thread 10 // Main thread History thread
(...skipping 17 matching lines...) Expand all
28 #include "base/path_service.h" 28 #include "base/path_service.h"
29 #include "base/prefs/pref_service.h" 29 #include "base/prefs/pref_service.h"
30 #include "base/thread_task_runner_handle.h" 30 #include "base/thread_task_runner_handle.h"
31 #include "base/threading/thread.h" 31 #include "base/threading/thread.h"
32 #include "base/time/time.h" 32 #include "base/time/time.h"
33 #include "chrome/browser/browser_process.h" 33 #include "chrome/browser/browser_process.h"
34 #include "chrome/browser/chrome_notification_types.h" 34 #include "chrome/browser/chrome_notification_types.h"
35 #include "chrome/browser/history/download_row.h" 35 #include "chrome/browser/history/download_row.h"
36 #include "chrome/browser/history/history_backend.h" 36 #include "chrome/browser/history/history_backend.h"
37 #include "chrome/browser/history/history_notifications.h" 37 #include "chrome/browser/history/history_notifications.h"
38 #include "chrome/browser/history/history_types.h"
39 #include "chrome/browser/history/in_memory_history_backend.h" 38 #include "chrome/browser/history/in_memory_history_backend.h"
40 #include "chrome/browser/history/in_memory_url_index.h" 39 #include "chrome/browser/history/in_memory_url_index.h"
41 #include "chrome/browser/history/top_sites.h" 40 #include "chrome/browser/history/top_sites.h"
42 #include "chrome/browser/history/visit_database.h" 41 #include "chrome/browser/history/visit_database.h"
43 #include "chrome/browser/history/visit_filter.h" 42 #include "chrome/browser/history/visit_filter.h"
44 #include "chrome/browser/history/web_history_service.h" 43 #include "chrome/browser/history/web_history_service.h"
45 #include "chrome/browser/history/web_history_service_factory.h" 44 #include "chrome/browser/history/web_history_service_factory.h"
46 #include "chrome/browser/profiles/profile.h" 45 #include "chrome/browser/profiles/profile.h"
47 #include "chrome/common/chrome_constants.h" 46 #include "chrome/common/chrome_constants.h"
48 #include "chrome/common/chrome_switches.h" 47 #include "chrome/common/chrome_switches.h"
49 #include "chrome/common/importer/imported_favicon_usage.h" 48 #include "chrome/common/importer/imported_favicon_usage.h"
50 #include "chrome/common/pref_names.h" 49 #include "chrome/common/pref_names.h"
51 #include "chrome/common/url_constants.h" 50 #include "chrome/common/url_constants.h"
52 #include "components/dom_distiller/core/url_constants.h" 51 #include "components/dom_distiller/core/url_constants.h"
53 #include "components/history/core/browser/history_client.h" 52 #include "components/history/core/browser/history_client.h"
53 #include "components/history/core/browser/history_types.h"
54 #include "components/history/core/browser/in_memory_database.h" 54 #include "components/history/core/browser/in_memory_database.h"
55 #include "components/history/core/browser/keyword_search_term.h" 55 #include "components/history/core/browser/keyword_search_term.h"
56 #include "components/history/core/common/thumbnail_score.h" 56 #include "components/history/core/common/thumbnail_score.h"
57 #include "components/visitedlink/browser/visitedlink_master.h" 57 #include "components/visitedlink/browser/visitedlink_master.h"
58 #include "content/public/browser/browser_thread.h" 58 #include "content/public/browser/browser_thread.h"
59 #include "content/public/browser/download_item.h" 59 #include "content/public/browser/download_item.h"
60 #include "content/public/browser/notification_service.h" 60 #include "content/public/browser/notification_service.h"
61 #include "sync/api/sync_error_factory.h" 61 #include "sync/api/sync_error_factory.h"
62 #include "third_party/skia/include/core/SkBitmap.h" 62 #include "third_party/skia/include/core/SkBitmap.h"
63 63
(...skipping 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after
1245 const HistoryService::OnFaviconChangedCallback& callback) { 1245 const HistoryService::OnFaviconChangedCallback& callback) {
1246 DCHECK(thread_checker_.CalledOnValidThread()); 1246 DCHECK(thread_checker_.CalledOnValidThread());
1247 return favicon_changed_callback_list_.Add(callback); 1247 return favicon_changed_callback_list_.Add(callback);
1248 } 1248 }
1249 1249
1250 void HistoryService::NotifyFaviconChanged( 1250 void HistoryService::NotifyFaviconChanged(
1251 const std::set<GURL>& changed_favicons) { 1251 const std::set<GURL>& changed_favicons) {
1252 DCHECK(thread_checker_.CalledOnValidThread()); 1252 DCHECK(thread_checker_.CalledOnValidThread());
1253 favicon_changed_callback_list_.Notify(changed_favicons); 1253 favicon_changed_callback_list_.Notify(changed_favicons);
1254 } 1254 }
OLDNEW
« no previous file with comments | « chrome/browser/history/history_notifications.h ('k') | chrome/browser/history/history_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698