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 <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 #include "chrome/browser/ui/webui/chromeos/network_ui.h" | 123 #include "chrome/browser/ui/webui/chromeos/network_ui.h" |
124 #include "chrome/browser/ui/webui/chromeos/nfc_debug_ui.h" | 124 #include "chrome/browser/ui/webui/chromeos/nfc_debug_ui.h" |
125 #include "chrome/browser/ui/webui/chromeos/power_ui.h" | 125 #include "chrome/browser/ui/webui/chromeos/power_ui.h" |
126 #include "chrome/browser/ui/webui/chromeos/provided_file_systems_ui.h" | 126 #include "chrome/browser/ui/webui/chromeos/provided_file_systems_ui.h" |
127 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" | 127 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" |
128 #include "chrome/browser/ui/webui/chromeos/salsa_ui.h" | 128 #include "chrome/browser/ui/webui/chromeos/salsa_ui.h" |
129 #include "chrome/browser/ui/webui/chromeos/set_time_ui.h" | 129 #include "chrome/browser/ui/webui/chromeos/set_time_ui.h" |
130 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" | 130 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" |
131 #include "chrome/browser/ui/webui/chromeos/slow_trace_ui.h" | 131 #include "chrome/browser/ui/webui/chromeos/slow_trace_ui.h" |
132 #include "chrome/browser/ui/webui/chromeos/slow_ui.h" | 132 #include "chrome/browser/ui/webui/chromeos/slow_ui.h" |
| 133 #include "components/proximity_auth/webui/proximity_auth_ui.h" |
| 134 #include "components/proximity_auth/webui/proximity_auth_webui_constants.h" |
133 #endif | 135 #endif |
134 | 136 |
135 #if defined(USE_AURA) | 137 #if defined(USE_AURA) |
136 #include "chrome/browser/ui/webui/gesture_config_ui.h" | 138 #include "chrome/browser/ui/webui/gesture_config_ui.h" |
137 #endif | 139 #endif |
138 | 140 |
139 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) | 141 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) |
140 #include "chrome/browser/ui/sync/sync_promo_ui.h" | 142 #include "chrome/browser/ui/sync/sync_promo_ui.h" |
141 #endif | 143 #endif |
142 | 144 |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 if (url.host() == chrome::kChromeUIDriveInternalsHost) | 427 if (url.host() == chrome::kChromeUIDriveInternalsHost) |
426 return &NewWebUI<chromeos::DriveInternalsUI>; | 428 return &NewWebUI<chromeos::DriveInternalsUI>; |
427 if (url.host() == chrome::kChromeUIImageBurnerHost) | 429 if (url.host() == chrome::kChromeUIImageBurnerHost) |
428 return &NewWebUI<ImageBurnUI>; | 430 return &NewWebUI<ImageBurnUI>; |
429 if (url.host() == chrome::kChromeUIFirstRunHost) | 431 if (url.host() == chrome::kChromeUIFirstRunHost) |
430 return &NewWebUI<chromeos::FirstRunUI>; | 432 return &NewWebUI<chromeos::FirstRunUI>; |
431 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) | 433 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) |
432 return &NewWebUI<KeyboardOverlayUI>; | 434 return &NewWebUI<KeyboardOverlayUI>; |
433 if (url.host() == chrome::kChromeUIMobileSetupHost) | 435 if (url.host() == chrome::kChromeUIMobileSetupHost) |
434 return &NewWebUI<MobileSetupUI>; | 436 return &NewWebUI<MobileSetupUI>; |
| 437 if (url.host() == chrome::kChromeUINetworkHost) |
| 438 return &NewWebUI<chromeos::NetworkUI>; |
435 if (url.host() == chrome::kChromeUINfcDebugHost) | 439 if (url.host() == chrome::kChromeUINfcDebugHost) |
436 return &NewWebUI<chromeos::NfcDebugUI>; | 440 return &NewWebUI<chromeos::NfcDebugUI>; |
437 if (url.host() == chrome::kChromeUIOobeHost) | 441 if (url.host() == chrome::kChromeUIOobeHost) |
438 return &NewWebUI<chromeos::OobeUI>; | 442 return &NewWebUI<chromeos::OobeUI>; |
439 if (url.host() == chrome::kChromeUIOobeMdHost) | 443 if (url.host() == chrome::kChromeUIOobeMdHost) |
440 return &NewWebUI<OobeMdUI>; | 444 return &NewWebUI<OobeMdUI>; |
| 445 if (url.host() == chrome::kChromeUIPowerHost) |
| 446 return &NewWebUI<chromeos::PowerUI>; |
| 447 if (url.host() == proximity_auth::kChromeUIProximityAuthHost) |
| 448 return &NewWebUI<proximity_auth::ProximityAuthUI>; |
441 if (url.host() == chrome::kChromeUIProvidedFileSystemsHost) | 449 if (url.host() == chrome::kChromeUIProvidedFileSystemsHost) |
442 return &NewWebUI<chromeos::ProvidedFileSystemsUI>; | 450 return &NewWebUI<chromeos::ProvidedFileSystemsUI>; |
443 if (url.host() == chrome::kChromeUIProxySettingsHost) | 451 if (url.host() == chrome::kChromeUIProxySettingsHost) |
444 return &NewWebUI<chromeos::ProxySettingsUI>; | 452 return &NewWebUI<chromeos::ProxySettingsUI>; |
445 if (url.host() == chrome::kChromeUISalsaHost) | 453 if (url.host() == chrome::kChromeUISalsaHost) |
446 return &NewWebUI<SalsaUI>; | 454 return &NewWebUI<SalsaUI>; |
447 if (url.host() == chrome::kChromeUISetTimeHost) | 455 if (url.host() == chrome::kChromeUISetTimeHost) |
448 return &NewWebUI<chromeos::SetTimeUI>; | 456 return &NewWebUI<chromeos::SetTimeUI>; |
449 if (url.host() == chrome::kChromeUISimUnlockHost) | 457 if (url.host() == chrome::kChromeUISimUnlockHost) |
450 return &NewWebUI<chromeos::SimUnlockUI>; | 458 return &NewWebUI<chromeos::SimUnlockUI>; |
451 if (url.host() == chrome::kChromeUISlowHost) | 459 if (url.host() == chrome::kChromeUISlowHost) |
452 return &NewWebUI<chromeos::SlowUI>; | 460 return &NewWebUI<chromeos::SlowUI>; |
453 if (url.host() == chrome::kChromeUISlowTraceHost) | 461 if (url.host() == chrome::kChromeUISlowTraceHost) |
454 return &NewWebUI<chromeos::SlowTraceController>; | 462 return &NewWebUI<chromeos::SlowTraceController>; |
455 if (url.host() == chrome::kChromeUINetworkHost) | |
456 return &NewWebUI<chromeos::NetworkUI>; | |
457 if (url.host() == chrome::kChromeUIPowerHost) | |
458 return &NewWebUI<chromeos::PowerUI>; | |
459 #endif // defined(OS_CHROMEOS) | 463 #endif // defined(OS_CHROMEOS) |
460 #if defined(OS_ANDROID) || defined(OS_IOS) | 464 #if defined(OS_ANDROID) || defined(OS_IOS) |
461 if (url.host() == chrome::kChromeUINetExportHost) | 465 if (url.host() == chrome::kChromeUINetExportHost) |
462 return &NewWebUI<NetExportUI>; | 466 return &NewWebUI<NetExportUI>; |
463 #else | 467 #else |
464 if (url.host() == chrome::kChromeUICopresenceHost) | 468 if (url.host() == chrome::kChromeUICopresenceHost) |
465 return &NewWebUI<CopresenceUI>; | 469 return &NewWebUI<CopresenceUI>; |
466 if (url.host() == chrome::kChromeUIChromeSigninHost) | 470 if (url.host() == chrome::kChromeUIChromeSigninHost) |
467 return &NewWebUI<InlineLoginUI>; | 471 return &NewWebUI<InlineLoginUI>; |
468 if (url.SchemeIs(content::kChromeDevToolsScheme)) | 472 if (url.SchemeIs(content::kChromeDevToolsScheme)) |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
735 #endif | 739 #endif |
736 | 740 |
737 // Android doesn't use the plugins pages. | 741 // Android doesn't use the plugins pages. |
738 if (page_url.host() == chrome::kChromeUIPluginsHost) | 742 if (page_url.host() == chrome::kChromeUIPluginsHost) |
739 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 743 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
740 | 744 |
741 #endif | 745 #endif |
742 | 746 |
743 return NULL; | 747 return NULL; |
744 } | 748 } |
OLD | NEW |