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" |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "chrome/browser/sync/glue/device_info.h" | 31 #include "chrome/browser/sync/glue/device_info.h" |
32 #include "chrome/browser/sync/profile_sync_service.h" | 32 #include "chrome/browser/sync/profile_sync_service.h" |
33 #include "chrome/browser/sync/profile_sync_service_factory.h" | 33 #include "chrome/browser/sync/profile_sync_service_factory.h" |
34 #include "chrome/browser/ui/browser_finder.h" | 34 #include "chrome/browser/ui/browser_finder.h" |
35 #include "chrome/browser/ui/chrome_pages.h" | 35 #include "chrome/browser/ui/chrome_pages.h" |
36 #include "chrome/browser/ui/webui/favicon_source.h" | 36 #include "chrome/browser/ui/webui/favicon_source.h" |
37 #include "chrome/browser/ui/webui/metrics_handler.h" | 37 #include "chrome/browser/ui/webui/metrics_handler.h" |
38 #include "chrome/common/chrome_switches.h" | 38 #include "chrome/common/chrome_switches.h" |
39 #include "chrome/common/pref_names.h" | 39 #include "chrome/common/pref_names.h" |
40 #include "chrome/common/url_constants.h" | 40 #include "chrome/common/url_constants.h" |
| 41 #include "chrome/grit/generated_resources.h" |
41 #include "components/bookmarks/browser/bookmark_model.h" | 42 #include "components/bookmarks/browser/bookmark_model.h" |
42 #include "components/bookmarks/browser/bookmark_utils.h" | 43 #include "components/bookmarks/browser/bookmark_utils.h" |
43 #include "components/search/search.h" | 44 #include "components/search/search.h" |
44 #include "content/public/browser/notification_details.h" | 45 #include "content/public/browser/notification_details.h" |
45 #include "content/public/browser/notification_source.h" | 46 #include "content/public/browser/notification_source.h" |
46 #include "content/public/browser/url_data_source.h" | 47 #include "content/public/browser/url_data_source.h" |
47 #include "content/public/browser/web_ui.h" | 48 #include "content/public/browser/web_ui.h" |
48 #include "content/public/browser/web_ui_data_source.h" | 49 #include "content/public/browser/web_ui_data_source.h" |
49 #include "grit/browser_resources.h" | 50 #include "grit/browser_resources.h" |
50 #include "grit/generated_resources.h" | |
51 #include "grit/theme_resources.h" | 51 #include "grit/theme_resources.h" |
52 #include "net/base/escape.h" | 52 #include "net/base/escape.h" |
53 #include "net/base/net_util.h" | 53 #include "net/base/net_util.h" |
54 #include "sync/protocol/history_delete_directive_specifics.pb.h" | 54 #include "sync/protocol/history_delete_directive_specifics.pb.h" |
55 #include "ui/base/l10n/l10n_util.h" | 55 #include "ui/base/l10n/l10n_util.h" |
56 #include "ui/base/l10n/time_format.h" | 56 #include "ui/base/l10n/time_format.h" |
57 #include "ui/base/resource/resource_bundle.h" | 57 #include "ui/base/resource/resource_bundle.h" |
58 #include "ui/base/webui/web_ui_util.h" | 58 #include "ui/base/webui/web_ui_util.h" |
59 | 59 |
60 #if defined(ENABLE_EXTENSIONS) | 60 #if defined(ENABLE_EXTENSIONS) |
(...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1015 Profile* profile = Profile::FromWebUI(web_ui); | 1015 Profile* profile = Profile::FromWebUI(web_ui); |
1016 content::WebUIDataSource::Add(profile, CreateHistoryUIHTMLSource(profile)); | 1016 content::WebUIDataSource::Add(profile, CreateHistoryUIHTMLSource(profile)); |
1017 } | 1017 } |
1018 | 1018 |
1019 // static | 1019 // static |
1020 base::RefCountedMemory* HistoryUI::GetFaviconResourceBytes( | 1020 base::RefCountedMemory* HistoryUI::GetFaviconResourceBytes( |
1021 ui::ScaleFactor scale_factor) { | 1021 ui::ScaleFactor scale_factor) { |
1022 return ResourceBundle::GetSharedInstance(). | 1022 return ResourceBundle::GetSharedInstance(). |
1023 LoadDataResourceBytesForScale(IDR_HISTORY_FAVICON, scale_factor); | 1023 LoadDataResourceBytesForScale(IDR_HISTORY_FAVICON, scale_factor); |
1024 } | 1024 } |
OLD | NEW |