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 10 matching lines...) Expand all Loading... |
21 #include <utility> | 21 #include <utility> |
22 | 22 |
23 #include "base/bind_helpers.h" | 23 #include "base/bind_helpers.h" |
24 #include "base/callback.h" | 24 #include "base/callback.h" |
25 #include "base/command_line.h" | 25 #include "base/command_line.h" |
26 #include "base/compiler_specific.h" | 26 #include "base/compiler_specific.h" |
27 #include "base/location.h" | 27 #include "base/location.h" |
28 #include "base/memory/ref_counted.h" | 28 #include "base/memory/ref_counted.h" |
29 #include "base/metrics/histogram_macros.h" | 29 #include "base/metrics/histogram_macros.h" |
30 #include "base/single_thread_task_runner.h" | 30 #include "base/single_thread_task_runner.h" |
| 31 #include "base/task_runner_util.h" |
31 #include "base/task_scheduler/post_task.h" | 32 #include "base/task_scheduler/post_task.h" |
32 #include "base/threading/thread.h" | 33 #include "base/threading/thread.h" |
33 #include "base/threading/thread_task_runner_handle.h" | 34 #include "base/threading/thread_task_runner_handle.h" |
34 #include "base/time/time.h" | 35 #include "base/time/time.h" |
35 #include "base/trace_event/trace_event.h" | 36 #include "base/trace_event/trace_event.h" |
36 #include "build/build_config.h" | 37 #include "build/build_config.h" |
37 #include "components/history/core/browser/download_row.h" | 38 #include "components/history/core/browser/download_row.h" |
38 #include "components/history/core/browser/history_backend.h" | 39 #include "components/history/core/browser/history_backend.h" |
39 #include "components/history/core/browser/history_backend_client.h" | 40 #include "components/history/core/browser/history_backend_client.h" |
40 #include "components/history/core/browser/history_client.h" | 41 #include "components/history/core/browser/history_client.h" |
(...skipping 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1147 return favicon_changed_callback_list_.Add(callback); | 1148 return favicon_changed_callback_list_.Add(callback); |
1148 } | 1149 } |
1149 | 1150 |
1150 void HistoryService::NotifyFaviconsChanged(const std::set<GURL>& page_urls, | 1151 void HistoryService::NotifyFaviconsChanged(const std::set<GURL>& page_urls, |
1151 const GURL& icon_url) { | 1152 const GURL& icon_url) { |
1152 DCHECK(thread_checker_.CalledOnValidThread()); | 1153 DCHECK(thread_checker_.CalledOnValidThread()); |
1153 favicon_changed_callback_list_.Notify(page_urls, icon_url); | 1154 favicon_changed_callback_list_.Notify(page_urls, icon_url); |
1154 } | 1155 } |
1155 | 1156 |
1156 } // namespace history | 1157 } // namespace history |
OLD | NEW |