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 // 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 #include "chrome/browser/history/visit_filter.h" | 45 #include "chrome/browser/history/visit_filter.h" |
46 #include "chrome/browser/history/web_history_service.h" | 46 #include "chrome/browser/history/web_history_service.h" |
47 #include "chrome/browser/history/web_history_service_factory.h" | 47 #include "chrome/browser/history/web_history_service_factory.h" |
48 #include "chrome/browser/profiles/profile.h" | 48 #include "chrome/browser/profiles/profile.h" |
49 #include "chrome/common/chrome_constants.h" | 49 #include "chrome/common/chrome_constants.h" |
50 #include "chrome/common/chrome_switches.h" | 50 #include "chrome/common/chrome_switches.h" |
51 #include "chrome/common/importer/imported_favicon_usage.h" | 51 #include "chrome/common/importer/imported_favicon_usage.h" |
52 #include "chrome/common/pref_names.h" | 52 #include "chrome/common/pref_names.h" |
53 #include "chrome/common/url_constants.h" | 53 #include "chrome/common/url_constants.h" |
54 #include "components/history/core/browser/history_client.h" | 54 #include "components/history/core/browser/history_client.h" |
| 55 #include "components/history/core/browser/keyword_search_term.h" |
55 #include "components/history/core/common/thumbnail_score.h" | 56 #include "components/history/core/common/thumbnail_score.h" |
56 #include "components/visitedlink/browser/visitedlink_master.h" | 57 #include "components/visitedlink/browser/visitedlink_master.h" |
57 #include "content/public/browser/browser_thread.h" | 58 #include "content/public/browser/browser_thread.h" |
58 #include "content/public/browser/download_item.h" | 59 #include "content/public/browser/download_item.h" |
59 #include "content/public/browser/notification_service.h" | 60 #include "content/public/browser/notification_service.h" |
60 #include "grit/chromium_strings.h" | 61 #include "grit/chromium_strings.h" |
61 #include "grit/generated_resources.h" | 62 #include "grit/generated_resources.h" |
62 #include "sync/api/sync_error_factory.h" | 63 #include "sync/api/sync_error_factory.h" |
63 #include "third_party/skia/include/core/SkBitmap.h" | 64 #include "third_party/skia/include/core/SkBitmap.h" |
64 | 65 |
(...skipping 1128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1193 DCHECK(thread_checker_.CalledOnValidThread()); | 1194 DCHECK(thread_checker_.CalledOnValidThread()); |
1194 visit_database_observers_.RemoveObserver(observer); | 1195 visit_database_observers_.RemoveObserver(observer); |
1195 } | 1196 } |
1196 | 1197 |
1197 void HistoryService::NotifyVisitDBObserversOnAddVisit( | 1198 void HistoryService::NotifyVisitDBObserversOnAddVisit( |
1198 const history::BriefVisitInfo& info) { | 1199 const history::BriefVisitInfo& info) { |
1199 DCHECK(thread_checker_.CalledOnValidThread()); | 1200 DCHECK(thread_checker_.CalledOnValidThread()); |
1200 FOR_EACH_OBSERVER(history::VisitDatabaseObserver, visit_database_observers_, | 1201 FOR_EACH_OBSERVER(history::VisitDatabaseObserver, visit_database_observers_, |
1201 OnAddVisit(info)); | 1202 OnAddVisit(info)); |
1202 } | 1203 } |
OLD | NEW |