| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 25 matching lines...) Expand all Loading... |
| 36 #include "chrome/browser/browser_thread.h" | 36 #include "chrome/browser/browser_thread.h" |
| 37 #include "chrome/browser/browser_window.h" | 37 #include "chrome/browser/browser_window.h" |
| 38 #include "chrome/browser/history/download_create_info.h" | 38 #include "chrome/browser/history/download_create_info.h" |
| 39 #include "chrome/browser/history/history_backend.h" | 39 #include "chrome/browser/history/history_backend.h" |
| 40 #include "chrome/browser/history/history_notifications.h" | 40 #include "chrome/browser/history/history_notifications.h" |
| 41 #include "chrome/browser/history/history_types.h" | 41 #include "chrome/browser/history/history_types.h" |
| 42 #include "chrome/browser/history/in_memory_database.h" | 42 #include "chrome/browser/history/in_memory_database.h" |
| 43 #include "chrome/browser/history/in_memory_history_backend.h" | 43 #include "chrome/browser/history/in_memory_history_backend.h" |
| 44 #include "chrome/browser/history/top_sites.h" | 44 #include "chrome/browser/history/top_sites.h" |
| 45 #include "chrome/browser/prefs/pref_service.h" | 45 #include "chrome/browser/prefs/pref_service.h" |
| 46 #include "chrome/browser/profile.h" | 46 #include "chrome/browser/profiles/profile.h" |
| 47 #include "chrome/browser/visitedlink_master.h" | 47 #include "chrome/browser/visitedlink/visitedlink_master.h" |
| 48 #include "chrome/common/chrome_constants.h" | 48 #include "chrome/common/chrome_constants.h" |
| 49 #include "chrome/common/notification_service.h" | 49 #include "chrome/common/notification_service.h" |
| 50 #include "chrome/common/pref_names.h" | 50 #include "chrome/common/pref_names.h" |
| 51 #include "chrome/common/thumbnail_score.h" | 51 #include "chrome/common/thumbnail_score.h" |
| 52 #include "chrome/common/url_constants.h" | 52 #include "chrome/common/url_constants.h" |
| 53 #include "grit/chromium_strings.h" | 53 #include "grit/chromium_strings.h" |
| 54 #include "grit/generated_resources.h" | 54 #include "grit/generated_resources.h" |
| 55 #include "third_party/skia/include/core/SkBitmap.h" | 55 #include "third_party/skia/include/core/SkBitmap.h" |
| 56 | 56 |
| 57 using base::Time; | 57 using base::Time; |
| (...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 798 history::TopSites* ts = profile_->GetTopSitesWithoutCreating(); | 798 history::TopSites* ts = profile_->GetTopSitesWithoutCreating(); |
| 799 if (ts) | 799 if (ts) |
| 800 ts->MigrateFromHistory(); | 800 ts->MigrateFromHistory(); |
| 801 } | 801 } |
| 802 } | 802 } |
| 803 | 803 |
| 804 void HistoryService::OnTopSitesReady() { | 804 void HistoryService::OnTopSitesReady() { |
| 805 ScheduleAndForget(PRIORITY_NORMAL, | 805 ScheduleAndForget(PRIORITY_NORMAL, |
| 806 &HistoryBackend::MigrateThumbnailsDatabase); | 806 &HistoryBackend::MigrateThumbnailsDatabase); |
| 807 } | 807 } |
| OLD | NEW |