| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" | 127 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" |
| 128 #include "chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.h" | 128 #include "chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.h" |
| 129 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" | 129 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" |
| 130 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" | 130 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" |
| 131 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" | 131 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" |
| 132 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_ui.h" | 132 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_ui.h" |
| 133 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" | 133 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" |
| 134 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" | 134 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
| 135 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" | 135 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" |
| 136 #include "chrome/browser/ui/webui/chromeos/network_ui.h" | 136 #include "chrome/browser/ui/webui/chromeos/network_ui.h" |
| 137 #include "chrome/browser/ui/webui/chromeos/nfc_debug_ui.h" | |
| 138 #include "chrome/browser/ui/webui/chromeos/power_ui.h" | 137 #include "chrome/browser/ui/webui/chromeos/power_ui.h" |
| 139 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" | 138 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" |
| 140 #include "chrome/browser/ui/webui/chromeos/set_time_ui.h" | 139 #include "chrome/browser/ui/webui/chromeos/set_time_ui.h" |
| 141 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" | 140 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" |
| 142 #include "chrome/browser/ui/webui/chromeos/slow_trace_ui.h" | 141 #include "chrome/browser/ui/webui/chromeos/slow_trace_ui.h" |
| 143 #include "chrome/browser/ui/webui/chromeos/slow_ui.h" | 142 #include "chrome/browser/ui/webui/chromeos/slow_ui.h" |
| 144 #include "chrome/browser/ui/webui/voice_search_ui.h" | 143 #include "chrome/browser/ui/webui/voice_search_ui.h" |
| 145 #include "components/proximity_auth/webui/proximity_auth_ui.h" | 144 #include "components/proximity_auth/webui/proximity_auth_ui.h" |
| 146 #include "components/proximity_auth/webui/url_constants.h" | 145 #include "components/proximity_auth/webui/url_constants.h" |
| 147 #endif | 146 #endif |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 if (url.host() == chrome::kChromeUIDriveInternalsHost) | 473 if (url.host() == chrome::kChromeUIDriveInternalsHost) |
| 475 return &NewWebUI<chromeos::DriveInternalsUI>; | 474 return &NewWebUI<chromeos::DriveInternalsUI>; |
| 476 if (url.host() == chrome::kChromeUIFirstRunHost) | 475 if (url.host() == chrome::kChromeUIFirstRunHost) |
| 477 return &NewWebUI<chromeos::FirstRunUI>; | 476 return &NewWebUI<chromeos::FirstRunUI>; |
| 478 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) | 477 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) |
| 479 return &NewWebUI<KeyboardOverlayUI>; | 478 return &NewWebUI<KeyboardOverlayUI>; |
| 480 if (url.host() == chrome::kChromeUIMobileSetupHost) | 479 if (url.host() == chrome::kChromeUIMobileSetupHost) |
| 481 return &NewWebUI<MobileSetupUI>; | 480 return &NewWebUI<MobileSetupUI>; |
| 482 if (url.host() == chrome::kChromeUINetworkHost) | 481 if (url.host() == chrome::kChromeUINetworkHost) |
| 483 return &NewWebUI<chromeos::NetworkUI>; | 482 return &NewWebUI<chromeos::NetworkUI>; |
| 484 if (url.host() == chrome::kChromeUINfcDebugHost) | |
| 485 return &NewWebUI<chromeos::NfcDebugUI>; | |
| 486 if (url.host() == chrome::kChromeUIOobeHost) | 483 if (url.host() == chrome::kChromeUIOobeHost) |
| 487 return &NewWebUI<chromeos::OobeUI>; | 484 return &NewWebUI<chromeos::OobeUI>; |
| 488 if (url.host() == chrome::kChromeUIPowerHost) | 485 if (url.host() == chrome::kChromeUIPowerHost) |
| 489 return &NewWebUI<chromeos::PowerUI>; | 486 return &NewWebUI<chromeos::PowerUI>; |
| 490 if (url.host() == proximity_auth::kChromeUIProximityAuthHost) | 487 if (url.host() == proximity_auth::kChromeUIProximityAuthHost) |
| 491 return &NewWebUI<proximity_auth::ProximityAuthUI>; | 488 return &NewWebUI<proximity_auth::ProximityAuthUI>; |
| 492 if (url.host() == chrome::kChromeUIProxySettingsHost) | 489 if (url.host() == chrome::kChromeUIProxySettingsHost) |
| 493 return &NewWebUI<chromeos::ProxySettingsUI>; | 490 return &NewWebUI<chromeos::ProxySettingsUI>; |
| 494 if (url.host() == chrome::kChromeUISetTimeHost) | 491 if (url.host() == chrome::kChromeUISetTimeHost) |
| 495 return &NewWebUI<chromeos::SetTimeUI>; | 492 return &NewWebUI<chromeos::SetTimeUI>; |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 812 #endif | 809 #endif |
| 813 | 810 |
| 814 // Android doesn't use the plugins pages. | 811 // Android doesn't use the plugins pages. |
| 815 if (page_url.host() == chrome::kChromeUIPluginsHost) | 812 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 816 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 813 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
| 817 | 814 |
| 818 #endif | 815 #endif |
| 819 | 816 |
| 820 return NULL; | 817 return NULL; |
| 821 } | 818 } |
| OLD | NEW |