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/command_line.h" | 7 #include "base/command_line.h" |
8 #include "chrome/browser/about_flags.h" | 8 #include "chrome/browser/about_flags.h" |
9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/extensions/extension_service.h" | 10 #include "chrome/browser/extensions/extension_service.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 #include "chrome/common/pref_names.h" | 55 #include "chrome/common/pref_names.h" |
56 #include "chrome/common/url_constants.h" | 56 #include "chrome/common/url_constants.h" |
57 #include "content/public/browser/web_contents.h" | 57 #include "content/public/browser/web_contents.h" |
58 #include "content/public/browser/web_ui.h" | 58 #include "content/public/browser/web_ui.h" |
59 #include "content/public/common/content_client.h" | 59 #include "content/public/common/content_client.h" |
60 #include "googleurl/src/gurl.h" | 60 #include "googleurl/src/gurl.h" |
61 #include "ui/web_dialogs/constrained_web_dialog_ui.h" | 61 #include "ui/web_dialogs/constrained_web_dialog_ui.h" |
62 #include "ui/web_dialogs/web_dialog_ui.h" | 62 #include "ui/web_dialogs/web_dialog_ui.h" |
63 | 63 |
64 #if defined(OS_CHROMEOS) | 64 #if defined(OS_CHROMEOS) |
| 65 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" |
65 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" | 66 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" |
66 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" | 67 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" |
67 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" | 68 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" |
68 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" | 69 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" |
69 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" | 70 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
70 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" | 71 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" |
71 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" | 72 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" |
72 #include "chrome/browser/ui/webui/chromeos/register_page_ui.h" | 73 #include "chrome/browser/ui/webui/chromeos/register_page_ui.h" |
73 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" | 74 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" |
74 #include "chrome/browser/ui/webui/chromeos/system_info_ui.h" | 75 #include "chrome/browser/ui/webui/chromeos/system_info_ui.h" |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 #endif | 269 #endif |
269 #if (defined(USE_NSS) || defined(USE_OPENSSL)) && defined(USE_AURA) | 270 #if (defined(USE_NSS) || defined(USE_OPENSSL)) && defined(USE_AURA) |
270 if (url.host() == chrome::kChromeUICertificateViewerHost) | 271 if (url.host() == chrome::kChromeUICertificateViewerHost) |
271 return &NewWebUI<CertificateViewerUI>; | 272 return &NewWebUI<CertificateViewerUI>; |
272 #endif | 273 #endif |
273 #if defined(OS_CHROMEOS) | 274 #if defined(OS_CHROMEOS) |
274 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) | 275 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) |
275 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; | 276 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; |
276 if (url.host() == chrome::kChromeUICryptohomeHost) | 277 if (url.host() == chrome::kChromeUICryptohomeHost) |
277 return &NewWebUI<chromeos::CryptohomeUI>; | 278 return &NewWebUI<chromeos::CryptohomeUI>; |
| 279 if (url.host() == chrome::kChromeUIDriveInternalsHost) |
| 280 return &NewWebUI<chromeos::DriveInternalsUI>; |
278 if (url.host() == chrome::kChromeUIImageBurnerHost) | 281 if (url.host() == chrome::kChromeUIImageBurnerHost) |
279 return &NewWebUI<ImageBurnUI>; | 282 return &NewWebUI<ImageBurnUI>; |
280 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) | 283 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) |
281 return &NewWebUI<KeyboardOverlayUI>; | 284 return &NewWebUI<KeyboardOverlayUI>; |
282 if (url.host() == chrome::kChromeUIMobileSetupHost) | 285 if (url.host() == chrome::kChromeUIMobileSetupHost) |
283 return &NewWebUI<MobileSetupUI>; | 286 return &NewWebUI<MobileSetupUI>; |
284 if (url.host() == chrome::kChromeUIOobeHost) | 287 if (url.host() == chrome::kChromeUIOobeHost) |
285 return &NewWebUI<chromeos::OobeUI>; | 288 return &NewWebUI<chromeos::OobeUI>; |
286 if (url.host() == chrome::kChromeUIProxySettingsHost) | 289 if (url.host() == chrome::kChromeUIProxySettingsHost) |
287 return &NewWebUI<chromeos::ProxySettingsUI>; | 290 return &NewWebUI<chromeos::ProxySettingsUI>; |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 if (page_url.host() == chrome::kChromeUISettingsFrameHost) | 527 if (page_url.host() == chrome::kChromeUISettingsFrameHost) |
525 return options2::OptionsUI::GetFaviconResourceBytes(); | 528 return options2::OptionsUI::GetFaviconResourceBytes(); |
526 | 529 |
527 // Android doesn't use the plugins pages. | 530 // Android doesn't use the plugins pages. |
528 if (page_url.host() == chrome::kChromeUIPluginsHost) | 531 if (page_url.host() == chrome::kChromeUIPluginsHost) |
529 return PluginsUI::GetFaviconResourceBytes(); | 532 return PluginsUI::GetFaviconResourceBytes(); |
530 #endif | 533 #endif |
531 | 534 |
532 return NULL; | 535 return NULL; |
533 } | 536 } |
OLD | NEW |