| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_impl.h" | 5 #include "chrome/browser/history/top_sites_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
| 12 #include "base/metrics/histogram.h" | |
| 13 #include "base/logging.h" | 12 #include "base/logging.h" |
| 14 #include "base/md5.h" | 13 #include "base/md5.h" |
| 15 #include "base/memory/ref_counted_memory.h" | 14 #include "base/memory/ref_counted_memory.h" |
| 16 #include "base/message_loop/message_loop_proxy.h" | 15 #include "base/message_loop/message_loop_proxy.h" |
| 16 #include "base/metrics/histogram.h" |
| 17 #include "base/prefs/pref_service.h" | 17 #include "base/prefs/pref_service.h" |
| 18 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
| 19 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
| 20 #include "base/task_runner.h" | 20 #include "base/task_runner.h" |
| 21 #include "base/values.h" | 21 #include "base/values.h" |
| 22 #include "chrome/browser/chrome_notification_types.h" | 22 #include "chrome/browser/chrome_notification_types.h" |
| 23 #include "chrome/browser/history/history_backend.h" | 23 #include "chrome/browser/history/history_backend.h" |
| 24 #include "chrome/browser/history/history_db_task.h" | 24 #include "chrome/browser/history/history_db_task.h" |
| 25 #include "chrome/browser/history/history_notifications.h" | 25 #include "chrome/browser/history/history_notifications.h" |
| 26 #include "chrome/browser/history/history_service_factory.h" | 26 #include "chrome/browser/history/history_service_factory.h" |
| (...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 785 SetTopSites(pages); | 785 SetTopSites(pages); |
| 786 | 786 |
| 787 // Used only in testing. | 787 // Used only in testing. |
| 788 content::NotificationService::current()->Notify( | 788 content::NotificationService::current()->Notify( |
| 789 chrome::NOTIFICATION_TOP_SITES_UPDATED, | 789 chrome::NOTIFICATION_TOP_SITES_UPDATED, |
| 790 content::Source<TopSitesImpl>(this), | 790 content::Source<TopSitesImpl>(this), |
| 791 content::Details<CancelableRequestProvider::Handle>(&handle)); | 791 content::Details<CancelableRequestProvider::Handle>(&handle)); |
| 792 } | 792 } |
| 793 | 793 |
| 794 } // namespace history | 794 } // namespace history |
| OLD | NEW |