| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 #include "chrome/common/url_constants.h" | 51 #include "chrome/common/url_constants.h" |
| 52 #include "components/dom_distiller/core/url_constants.h" | 52 #include "components/dom_distiller/core/url_constants.h" |
| 53 #include "components/history/core/browser/history_client.h" | 53 #include "components/history/core/browser/history_client.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 "grit/chromium_strings.h" | |
| 62 #include "grit/generated_resources.h" | |
| 63 #include "sync/api/sync_error_factory.h" | 61 #include "sync/api/sync_error_factory.h" |
| 64 #include "third_party/skia/include/core/SkBitmap.h" | 62 #include "third_party/skia/include/core/SkBitmap.h" |
| 65 | 63 |
| 66 using base::Time; | 64 using base::Time; |
| 67 using history::HistoryBackend; | 65 using history::HistoryBackend; |
| 68 using history::KeywordID; | 66 using history::KeywordID; |
| 69 | 67 |
| 70 namespace { | 68 namespace { |
| 71 | 69 |
| 72 static const char* kHistoryThreadName = "Chrome_HistoryThread"; | 70 static const char* kHistoryThreadName = "Chrome_HistoryThread"; |
| (...skipping 1151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1224 DCHECK(thread_checker_.CalledOnValidThread()); | 1222 DCHECK(thread_checker_.CalledOnValidThread()); |
| 1225 visit_database_observers_.RemoveObserver(observer); | 1223 visit_database_observers_.RemoveObserver(observer); |
| 1226 } | 1224 } |
| 1227 | 1225 |
| 1228 void HistoryService::NotifyVisitDBObserversOnAddVisit( | 1226 void HistoryService::NotifyVisitDBObserversOnAddVisit( |
| 1229 const history::BriefVisitInfo& info) { | 1227 const history::BriefVisitInfo& info) { |
| 1230 DCHECK(thread_checker_.CalledOnValidThread()); | 1228 DCHECK(thread_checker_.CalledOnValidThread()); |
| 1231 FOR_EACH_OBSERVER(history::VisitDatabaseObserver, visit_database_observers_, | 1229 FOR_EACH_OBSERVER(history::VisitDatabaseObserver, visit_database_observers_, |
| 1232 OnAddVisit(info)); | 1230 OnAddVisit(info)); |
| 1233 } | 1231 } |
| OLD | NEW |