Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Side by Side Diff: chrome/browser/history/history_service.cc

Issue 304273010: Move thumbnail to history component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing to ToT and formatting code Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "chrome/browser/history/visit_database.h" 44 #include "chrome/browser/history/visit_database.h"
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/browser/ui/profile_error_dialog.h" 49 #include "chrome/browser/ui/profile_error_dialog.h"
50 #include "chrome/common/chrome_constants.h" 50 #include "chrome/common/chrome_constants.h"
51 #include "chrome/common/chrome_switches.h" 51 #include "chrome/common/chrome_switches.h"
52 #include "chrome/common/importer/imported_favicon_usage.h" 52 #include "chrome/common/importer/imported_favicon_usage.h"
53 #include "chrome/common/pref_names.h" 53 #include "chrome/common/pref_names.h"
54 #include "chrome/common/thumbnail_score.h"
55 #include "chrome/common/url_constants.h" 54 #include "chrome/common/url_constants.h"
56 #include "components/history/core/browser/history_client.h" 55 #include "components/history/core/browser/history_client.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" 61 #include "grit/chromium_strings.h"
62 #include "grit/generated_resources.h" 62 #include "grit/generated_resources.h"
63 #include "sync/api/sync_error_factory.h" 63 #include "sync/api/sync_error_factory.h"
64 #include "third_party/skia/include/core/SkBitmap.h" 64 #include "third_party/skia/include/core/SkBitmap.h"
65 65
66 using base::Time; 66 using base::Time;
(...skipping 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after
1167 DCHECK(thread_checker_.CalledOnValidThread()); 1167 DCHECK(thread_checker_.CalledOnValidThread());
1168 visit_database_observers_.RemoveObserver(observer); 1168 visit_database_observers_.RemoveObserver(observer);
1169 } 1169 }
1170 1170
1171 void HistoryService::NotifyVisitDBObserversOnAddVisit( 1171 void HistoryService::NotifyVisitDBObserversOnAddVisit(
1172 const history::BriefVisitInfo& info) { 1172 const history::BriefVisitInfo& info) {
1173 DCHECK(thread_checker_.CalledOnValidThread()); 1173 DCHECK(thread_checker_.CalledOnValidThread());
1174 FOR_EACH_OBSERVER(history::VisitDatabaseObserver, visit_database_observers_, 1174 FOR_EACH_OBSERVER(history::VisitDatabaseObserver, visit_database_observers_,
1175 OnAddVisit(info)); 1175 OnAddVisit(info));
1176 } 1176 }
OLDNEW
« no previous file with comments | « chrome/browser/history/expire_history_backend_unittest.cc ('k') | chrome/browser/history/history_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698