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/chrome_web_ui_controller_factory.h" | 5 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 #include "chrome/browser/ui/webui/quota_internals/quota_internals_ui.h" | 45 #include "chrome/browser/ui/webui/quota_internals/quota_internals_ui.h" |
46 #include "chrome/browser/ui/webui/signin/profile_signin_confirmation_ui.h" | 46 #include "chrome/browser/ui/webui/signin/profile_signin_confirmation_ui.h" |
47 #include "chrome/browser/ui/webui/signin/user_manager_ui.h" | 47 #include "chrome/browser/ui/webui/signin/user_manager_ui.h" |
48 #include "chrome/browser/ui/webui/signin_internals_ui.h" | 48 #include "chrome/browser/ui/webui/signin_internals_ui.h" |
49 #include "chrome/browser/ui/webui/sync_internals_ui.h" | 49 #include "chrome/browser/ui/webui/sync_internals_ui.h" |
50 #include "chrome/browser/ui/webui/translate_internals/translate_internals_ui.h" | 50 #include "chrome/browser/ui/webui/translate_internals/translate_internals_ui.h" |
51 #include "chrome/browser/ui/webui/user_actions/user_actions_ui.h" | 51 #include "chrome/browser/ui/webui/user_actions/user_actions_ui.h" |
52 #include "chrome/browser/ui/webui/version_ui.h" | 52 #include "chrome/browser/ui/webui/version_ui.h" |
53 #include "chrome/common/chrome_switches.h" | 53 #include "chrome/common/chrome_switches.h" |
54 #include "chrome/common/extensions/extension_constants.h" | 54 #include "chrome/common/extensions/extension_constants.h" |
55 #include "chrome/common/extensions/feature_switch.h" | |
56 #include "chrome/common/pref_names.h" | 55 #include "chrome/common/pref_names.h" |
57 #include "chrome/common/url_constants.h" | 56 #include "chrome/common/url_constants.h" |
58 #include "components/dom_distiller/core/dom_distiller_constants.h" | 57 #include "components/dom_distiller/core/dom_distiller_constants.h" |
59 #include "components/dom_distiller/webui/dom_distiller_ui.h" | 58 #include "components/dom_distiller/webui/dom_distiller_ui.h" |
60 #include "content/public/browser/web_contents.h" | 59 #include "content/public/browser/web_contents.h" |
61 #include "content/public/browser/web_ui.h" | 60 #include "content/public/browser/web_ui.h" |
62 #include "content/public/common/content_client.h" | 61 #include "content/public/common/content_client.h" |
63 #include "content/public/common/url_utils.h" | 62 #include "content/public/common/url_utils.h" |
64 #include "extensions/common/constants.h" | 63 #include "extensions/common/constants.h" |
| 64 #include "extensions/common/feature_switch.h" |
65 #include "ui/gfx/favicon_size.h" | 65 #include "ui/gfx/favicon_size.h" |
66 #include "ui/web_dialogs/web_dialog_ui.h" | 66 #include "ui/web_dialogs/web_dialog_ui.h" |
67 #include "url/gurl.h" | 67 #include "url/gurl.h" |
68 | 68 |
69 #if !defined(DISABLE_NACL) | 69 #if !defined(DISABLE_NACL) |
70 #include "chrome/browser/ui/webui/nacl_ui.h" | 70 #include "chrome/browser/ui/webui/nacl_ui.h" |
71 #endif | 71 #endif |
72 | 72 |
73 #if defined(ENABLE_CONFIGURATION_POLICY) | 73 #if defined(ENABLE_CONFIGURATION_POLICY) |
74 #include "chrome/browser/ui/webui/policy_ui.h" | 74 #include "chrome/browser/ui/webui/policy_ui.h" |
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 if (page_url.host() == chrome::kChromeUIPluginsHost) | 645 if (page_url.host() == chrome::kChromeUIPluginsHost) |
646 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 646 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
647 | 647 |
648 // Android doesn't use the components pages. | 648 // Android doesn't use the components pages. |
649 if (page_url.host() == chrome::kChromeUIComponentsHost) | 649 if (page_url.host() == chrome::kChromeUIComponentsHost) |
650 return ComponentsUI::GetFaviconResourceBytes(scale_factor); | 650 return ComponentsUI::GetFaviconResourceBytes(scale_factor); |
651 #endif | 651 #endif |
652 | 652 |
653 return NULL; | 653 return NULL; |
654 } | 654 } |
OLD | NEW |