Chromium Code Reviews| 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 18 matching lines...) Expand all Loading... | |
| 29 #include "base/thread_task_runner_handle.h" | 29 #include "base/thread_task_runner_handle.h" |
| 30 #include "base/threading/thread.h" | 30 #include "base/threading/thread.h" |
| 31 #include "base/time/time.h" | 31 #include "base/time/time.h" |
| 32 #include "chrome/browser/browser_process.h" | 32 #include "chrome/browser/browser_process.h" |
| 33 #include "chrome/browser/chrome_notification_types.h" | 33 #include "chrome/browser/chrome_notification_types.h" |
| 34 #include "chrome/browser/history/download_row.h" | 34 #include "chrome/browser/history/download_row.h" |
| 35 #include "chrome/browser/history/history_backend.h" | 35 #include "chrome/browser/history/history_backend.h" |
| 36 #include "chrome/browser/history/history_notifications.h" | 36 #include "chrome/browser/history/history_notifications.h" |
| 37 #include "chrome/browser/history/in_memory_history_backend.h" | 37 #include "chrome/browser/history/in_memory_history_backend.h" |
| 38 #include "chrome/browser/history/in_memory_url_index.h" | 38 #include "chrome/browser/history/in_memory_url_index.h" |
| 39 #include "chrome/browser/history/top_sites.h" | 39 #include "chrome/browser/history/top_sites_provider.h" |
|
sdefresne
2014/12/19 15:11:40
Looks like it is unused, remove.
Jitu( very slow this week)
2014/12/26 14:04:27
Done.
| |
| 40 #include "chrome/browser/history/visit_database.h" | 40 #include "chrome/browser/history/visit_database.h" |
| 41 #include "chrome/browser/history/visit_filter.h" | 41 #include "chrome/browser/history/visit_filter.h" |
| 42 #include "chrome/browser/history/web_history_service.h" | 42 #include "chrome/browser/history/web_history_service.h" |
| 43 #include "chrome/browser/history/web_history_service_factory.h" | 43 #include "chrome/browser/history/web_history_service_factory.h" |
| 44 #include "chrome/browser/profiles/profile.h" | 44 #include "chrome/browser/profiles/profile.h" |
| 45 #include "chrome/common/chrome_constants.h" | 45 #include "chrome/common/chrome_constants.h" |
| 46 #include "chrome/common/chrome_switches.h" | 46 #include "chrome/common/chrome_switches.h" |
| 47 #include "chrome/common/importer/imported_favicon_usage.h" | 47 #include "chrome/common/importer/imported_favicon_usage.h" |
| 48 #include "chrome/common/pref_names.h" | 48 #include "chrome/common/pref_names.h" |
| 49 #include "chrome/common/url_constants.h" | 49 #include "chrome/common/url_constants.h" |
| (...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1285 const HistoryService::OnFaviconChangedCallback& callback) { | 1285 const HistoryService::OnFaviconChangedCallback& callback) { |
| 1286 DCHECK(thread_checker_.CalledOnValidThread()); | 1286 DCHECK(thread_checker_.CalledOnValidThread()); |
| 1287 return favicon_changed_callback_list_.Add(callback); | 1287 return favicon_changed_callback_list_.Add(callback); |
| 1288 } | 1288 } |
| 1289 | 1289 |
| 1290 void HistoryService::NotifyFaviconChanged( | 1290 void HistoryService::NotifyFaviconChanged( |
| 1291 const std::set<GURL>& changed_favicons) { | 1291 const std::set<GURL>& changed_favicons) { |
| 1292 DCHECK(thread_checker_.CalledOnValidThread()); | 1292 DCHECK(thread_checker_.CalledOnValidThread()); |
| 1293 favicon_changed_callback_list_.Notify(changed_favicons); | 1293 favicon_changed_callback_list_.Notify(changed_favicons); |
| 1294 } | 1294 } |
| OLD | NEW |