| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 #include "chrome/browser/history/visit_database.h" | 46 #include "chrome/browser/history/visit_database.h" |
| 47 #include "chrome/browser/history/visit_filter.h" | 47 #include "chrome/browser/history/visit_filter.h" |
| 48 #include "chrome/browser/history/web_history_service.h" | 48 #include "chrome/browser/history/web_history_service.h" |
| 49 #include "chrome/browser/history/web_history_service_factory.h" | 49 #include "chrome/browser/history/web_history_service_factory.h" |
| 50 #include "chrome/browser/profiles/profile.h" | 50 #include "chrome/browser/profiles/profile.h" |
| 51 #include "chrome/browser/ui/profile_error_dialog.h" | 51 #include "chrome/browser/ui/profile_error_dialog.h" |
| 52 #include "chrome/common/chrome_constants.h" | 52 #include "chrome/common/chrome_constants.h" |
| 53 #include "chrome/common/chrome_switches.h" | 53 #include "chrome/common/chrome_switches.h" |
| 54 #include "chrome/common/importer/imported_favicon_usage.h" | 54 #include "chrome/common/importer/imported_favicon_usage.h" |
| 55 #include "chrome/common/pref_names.h" | 55 #include "chrome/common/pref_names.h" |
| 56 #include "chrome/common/thumbnail_score.h" | |
| 57 #include "chrome/common/url_constants.h" | 56 #include "chrome/common/url_constants.h" |
| 58 #include "components/history/core/browser/history_client.h" | 57 #include "components/history/core/browser/history_client.h" |
| 58 #include "components/history/core/common/thumbnail_score.h" |
| 59 #include "components/visitedlink/browser/visitedlink_master.h" | 59 #include "components/visitedlink/browser/visitedlink_master.h" |
| 60 #include "content/public/browser/browser_thread.h" | 60 #include "content/public/browser/browser_thread.h" |
| 61 #include "content/public/browser/download_item.h" | 61 #include "content/public/browser/download_item.h" |
| 62 #include "content/public/browser/notification_service.h" | 62 #include "content/public/browser/notification_service.h" |
| 63 #include "grit/chromium_strings.h" | 63 #include "grit/chromium_strings.h" |
| 64 #include "grit/generated_resources.h" | 64 #include "grit/generated_resources.h" |
| 65 #include "sync/api/sync_error_factory.h" | 65 #include "sync/api/sync_error_factory.h" |
| 66 #include "third_party/skia/include/core/SkBitmap.h" | 66 #include "third_party/skia/include/core/SkBitmap.h" |
| 67 | 67 |
| 68 using base::Time; | 68 using base::Time; |
| (...skipping 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1169 DCHECK(thread_checker_.CalledOnValidThread()); | 1169 DCHECK(thread_checker_.CalledOnValidThread()); |
| 1170 visit_database_observers_.RemoveObserver(observer); | 1170 visit_database_observers_.RemoveObserver(observer); |
| 1171 } | 1171 } |
| 1172 | 1172 |
| 1173 void HistoryService::NotifyVisitDBObserversOnAddVisit( | 1173 void HistoryService::NotifyVisitDBObserversOnAddVisit( |
| 1174 const history::BriefVisitInfo& info) { | 1174 const history::BriefVisitInfo& info) { |
| 1175 DCHECK(thread_checker_.CalledOnValidThread()); | 1175 DCHECK(thread_checker_.CalledOnValidThread()); |
| 1176 FOR_EACH_OBSERVER(history::VisitDatabaseObserver, visit_database_observers_, | 1176 FOR_EACH_OBSERVER(history::VisitDatabaseObserver, visit_database_observers_, |
| 1177 OnAddVisit(info)); | 1177 OnAddVisit(info)); |
| 1178 } | 1178 } |
| OLD | NEW |