| 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 #include "chrome/browser/history/top_sites.h" | 5 #include "chrome/browser/history/top_sites.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
| 11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/md5.h" | 13 #include "base/md5.h" |
| 14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
| 15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
| 16 #include "base/values.h" | 16 #include "base/values.h" |
| 17 #include "chrome/browser/browser_thread.h" | 17 #include "chrome/browser/browser_thread.h" |
| 18 #include "chrome/browser/dom_ui/most_visited_handler.h" | 18 #include "chrome/browser/dom_ui/most_visited_handler.h" |
| 19 #include "chrome/browser/history/history_backend.h" | 19 #include "chrome/browser/history/history_backend.h" |
| 20 #include "chrome/browser/history/history_notifications.h" | 20 #include "chrome/browser/history/history_notifications.h" |
| 21 #include "chrome/browser/history/page_usage_data.h" | 21 #include "chrome/browser/history/page_usage_data.h" |
| 22 #include "chrome/browser/history/top_sites_backend.h" | 22 #include "chrome/browser/history/top_sites_backend.h" |
| 23 #include "chrome/browser/history/top_sites_cache.h" | 23 #include "chrome/browser/history/top_sites_cache.h" |
| 24 #include "chrome/browser/prefs/pref_service.h" | 24 #include "chrome/browser/prefs/pref_service.h" |
| 25 #include "chrome/browser/profile.h" | 25 #include "chrome/browser/profiles/profile.h" |
| 26 #include "chrome/browser/tab_contents/navigation_controller.h" | 26 #include "chrome/browser/tab_contents/navigation_controller.h" |
| 27 #include "chrome/browser/tab_contents/navigation_entry.h" | 27 #include "chrome/browser/tab_contents/navigation_entry.h" |
| 28 #include "chrome/common/chrome_switches.h" | 28 #include "chrome/common/chrome_switches.h" |
| 29 #include "chrome/common/notification_service.h" | 29 #include "chrome/common/notification_service.h" |
| 30 #include "chrome/common/pref_names.h" | 30 #include "chrome/common/pref_names.h" |
| 31 #include "chrome/common/thumbnail_score.h" | 31 #include "chrome/common/thumbnail_score.h" |
| 32 #include "gfx/codec/jpeg_codec.h" | 32 #include "gfx/codec/jpeg_codec.h" |
| 33 #include "grit/chromium_strings.h" | 33 #include "grit/chromium_strings.h" |
| 34 #include "grit/generated_resources.h" | 34 #include "grit/generated_resources.h" |
| 35 #include "grit/locale_settings.h" | 35 #include "grit/locale_settings.h" |
| (...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 910 SetTopSites(pages); | 910 SetTopSites(pages); |
| 911 | 911 |
| 912 // Used only in testing. | 912 // Used only in testing. |
| 913 NotificationService::current()->Notify( | 913 NotificationService::current()->Notify( |
| 914 NotificationType::TOP_SITES_UPDATED, | 914 NotificationType::TOP_SITES_UPDATED, |
| 915 Source<TopSites>(this), | 915 Source<TopSites>(this), |
| 916 Details<CancelableRequestProvider::Handle>(&handle)); | 916 Details<CancelableRequestProvider::Handle>(&handle)); |
| 917 } | 917 } |
| 918 | 918 |
| 919 } // namespace history | 919 } // namespace history |
| OLD | NEW |