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 #include "chrome/browser/ui/webui/ntp/most_visited_handler.h" | 5 #include "chrome/browser/ui/webui/ntp/most_visited_handler.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "chrome/browser/prefs/scoped_user_pref_update.h" | 24 #include "chrome/browser/prefs/scoped_user_pref_update.h" |
25 #include "chrome/browser/profiles/profile.h" | 25 #include "chrome/browser/profiles/profile.h" |
26 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" | 26 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" |
27 #include "chrome/browser/ui/webui/favicon_source.h" | 27 #include "chrome/browser/ui/webui/favicon_source.h" |
28 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" | 28 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" |
29 #include "chrome/browser/ui/webui/ntp/ntp_stats.h" | 29 #include "chrome/browser/ui/webui/ntp/ntp_stats.h" |
30 #include "chrome/browser/ui/webui/ntp/thumbnail_source.h" | 30 #include "chrome/browser/ui/webui/ntp/thumbnail_source.h" |
31 #include "chrome/common/chrome_notification_types.h" | 31 #include "chrome/common/chrome_notification_types.h" |
32 #include "chrome/common/pref_names.h" | 32 #include "chrome/common/pref_names.h" |
33 #include "chrome/common/url_constants.h" | 33 #include "chrome/common/url_constants.h" |
34 #include "content/public/browser/browser_thread.h" | |
35 #include "content/public/browser/navigation_controller.h" | 34 #include "content/public/browser/navigation_controller.h" |
36 #include "content/public/browser/navigation_entry.h" | 35 #include "content/public/browser/navigation_entry.h" |
37 #include "content/public/browser/notification_source.h" | 36 #include "content/public/browser/notification_source.h" |
38 #include "content/public/browser/user_metrics.h" | 37 #include "content/public/browser/user_metrics.h" |
39 #include "content/public/browser/web_contents.h" | 38 #include "content/public/browser/web_contents.h" |
40 #include "content/public/browser/web_ui.h" | 39 #include "content/public/browser/web_ui.h" |
41 #include "googleurl/src/gurl.h" | 40 #include "googleurl/src/gurl.h" |
42 #include "grit/chromium_strings.h" | 41 #include "grit/chromium_strings.h" |
43 #include "grit/generated_resources.h" | 42 #include "grit/generated_resources.h" |
44 #include "grit/locale_settings.h" | 43 #include "grit/locale_settings.h" |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 | 253 |
255 std::string MostVisitedHandler::GetDictionaryKeyForUrl(const std::string& url) { | 254 std::string MostVisitedHandler::GetDictionaryKeyForUrl(const std::string& url) { |
256 return base::MD5String(url); | 255 return base::MD5String(url); |
257 } | 256 } |
258 | 257 |
259 // static | 258 // static |
260 void MostVisitedHandler::RegisterUserPrefs(PrefServiceSyncable* prefs) { | 259 void MostVisitedHandler::RegisterUserPrefs(PrefServiceSyncable* prefs) { |
261 prefs->RegisterDictionaryPref(prefs::kNtpMostVisitedURLsBlacklist, | 260 prefs->RegisterDictionaryPref(prefs::kNtpMostVisitedURLsBlacklist, |
262 PrefServiceSyncable::UNSYNCABLE_PREF); | 261 PrefServiceSyncable::UNSYNCABLE_PREF); |
263 } | 262 } |
OLD | NEW |