| 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/history_ui.h" | 5 #include "chrome/browser/ui/webui/history_ui.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" |
| 11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/i18n/rtl.h" | 12 #include "base/i18n/rtl.h" |
| 13 #include "base/i18n/time_formatting.h" | 13 #include "base/i18n/time_formatting.h" |
| 14 #include "base/memory/singleton.h" | 14 #include "base/memory/singleton.h" |
| 15 #include "base/message_loop.h" | 15 #include "base/message_loop.h" |
| 16 #include "base/metrics/histogram.h" | 16 #include "base/metrics/histogram.h" |
| 17 #include "base/prefs/pref_service.h" | 17 #include "base/prefs/pref_service.h" |
| 18 #include "base/string16.h" | 18 #include "base/strings/string16.h" |
| 19 #include "base/strings/string_number_conversions.h" | 19 #include "base/strings/string_number_conversions.h" |
| 20 #include "base/strings/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
| 21 #include "base/time.h" | 21 #include "base/time.h" |
| 22 #include "base/values.h" | 22 #include "base/values.h" |
| 23 #include "chrome/browser/bookmarks/bookmark_model.h" | 23 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 24 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 24 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
| 25 #include "chrome/browser/bookmarks/bookmark_utils.h" | 25 #include "chrome/browser/bookmarks/bookmark_utils.h" |
| 26 #include "chrome/browser/history/history_notifications.h" | 26 #include "chrome/browser/history/history_notifications.h" |
| 27 #include "chrome/browser/history/history_service_factory.h" | 27 #include "chrome/browser/history/history_service_factory.h" |
| 28 #include "chrome/browser/history/history_types.h" | 28 #include "chrome/browser/history/history_types.h" |
| (...skipping 963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 992 return GURL(std::string(chrome::kChromeUIHistoryURL) + "#q=" + | 992 return GURL(std::string(chrome::kChromeUIHistoryURL) + "#q=" + |
| 993 net::EscapeQueryParamValue(UTF16ToUTF8(text), true)); | 993 net::EscapeQueryParamValue(UTF16ToUTF8(text), true)); |
| 994 } | 994 } |
| 995 | 995 |
| 996 // static | 996 // static |
| 997 base::RefCountedMemory* HistoryUI::GetFaviconResourceBytes( | 997 base::RefCountedMemory* HistoryUI::GetFaviconResourceBytes( |
| 998 ui::ScaleFactor scale_factor) { | 998 ui::ScaleFactor scale_factor) { |
| 999 return ResourceBundle::GetSharedInstance(). | 999 return ResourceBundle::GetSharedInstance(). |
| 1000 LoadDataResourceBytesForScale(IDR_HISTORY_FAVICON, scale_factor); | 1000 LoadDataResourceBytesForScale(IDR_HISTORY_FAVICON, scale_factor); |
| 1001 } | 1001 } |
| OLD | NEW |