| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 #include "chrome/browser/ui/webui/quota_internals/quota_internals_ui.h" | 92 #include "chrome/browser/ui/webui/quota_internals/quota_internals_ui.h" |
| 93 #include "chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui
.h" | 93 #include "chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui
.h" |
| 94 #include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_in
ternals_ui.h" | 94 #include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_in
ternals_ui.h" |
| 95 #include "chrome/browser/ui/webui/system_info_ui.h" | 95 #include "chrome/browser/ui/webui/system_info_ui.h" |
| 96 #include "chrome/browser/ui/webui/uber/uber_ui.h" | 96 #include "chrome/browser/ui/webui/uber/uber_ui.h" |
| 97 #endif | 97 #endif |
| 98 | 98 |
| 99 #if defined(OS_ANDROID) || defined(OS_IOS) | 99 #if defined(OS_ANDROID) || defined(OS_IOS) |
| 100 #include "chrome/browser/ui/webui/net_export_ui.h" | 100 #include "chrome/browser/ui/webui/net_export_ui.h" |
| 101 #else | 101 #else |
| 102 #include "chrome/browser/devtools/device/webrtc/webrtc_device_provider.h" |
| 102 #include "chrome/browser/ui/webui/devtools_ui.h" | 103 #include "chrome/browser/ui/webui/devtools_ui.h" |
| 103 #include "chrome/browser/ui/webui/inspect_ui.h" | 104 #include "chrome/browser/ui/webui/inspect_ui.h" |
| 104 #endif | 105 #endif |
| 105 | 106 |
| 106 #if defined(OS_CHROMEOS) | 107 #if defined(OS_CHROMEOS) |
| 107 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" | 108 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" |
| 108 #include "chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.h" | 109 #include "chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.h" |
| 109 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" | 110 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" |
| 110 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" | 111 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" |
| 111 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" | 112 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 return &NewWebUI<chromeos::PowerUI>; | 446 return &NewWebUI<chromeos::PowerUI>; |
| 446 #endif // defined(OS_CHROMEOS) | 447 #endif // defined(OS_CHROMEOS) |
| 447 #if defined(OS_ANDROID) || defined(OS_IOS) | 448 #if defined(OS_ANDROID) || defined(OS_IOS) |
| 448 if (url.host() == chrome::kChromeUINetExportHost) | 449 if (url.host() == chrome::kChromeUINetExportHost) |
| 449 return &NewWebUI<NetExportUI>; | 450 return &NewWebUI<NetExportUI>; |
| 450 #else | 451 #else |
| 451 if (url.host() == chrome::kChromeUIChromeSigninHost) | 452 if (url.host() == chrome::kChromeUIChromeSigninHost) |
| 452 return &NewWebUI<InlineLoginUI>; | 453 return &NewWebUI<InlineLoginUI>; |
| 453 if (url.SchemeIs(content::kChromeDevToolsScheme)) | 454 if (url.SchemeIs(content::kChromeDevToolsScheme)) |
| 454 return &NewWebUI<DevToolsUI>; | 455 return &NewWebUI<DevToolsUI>; |
| 456 if (url.host() == chrome::kChromeUIWebRTCDeviceProviderHost) |
| 457 return &NewWebUI<WebRTCDeviceProvider::WebUI>; |
| 458 |
| 455 // chrome://inspect isn't supported on Android nor iOS. Page debugging is | 459 // chrome://inspect isn't supported on Android nor iOS. Page debugging is |
| 456 // handled by a remote devtools on the host machine, and other elements, i.e. | 460 // handled by a remote devtools on the host machine, and other elements, i.e. |
| 457 // extensions aren't supported. | 461 // extensions aren't supported. |
| 458 if (url.host() == chrome::kChromeUIInspectHost) | 462 if (url.host() == chrome::kChromeUIInspectHost) |
| 459 return &NewWebUI<InspectUI>; | 463 return &NewWebUI<InspectUI>; |
| 460 #endif | 464 #endif |
| 461 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) && !defined(OS_IOS) | 465 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) && !defined(OS_IOS) |
| 462 if (url.host() == chrome::kChromeUIUserManagerHost && | 466 if (url.host() == chrome::kChromeUIUserManagerHost && |
| 463 switches::IsNewAvatarMenu()) { | 467 switches::IsNewAvatarMenu()) { |
| 464 return &NewWebUI<UserManagerUI>; | 468 return &NewWebUI<UserManagerUI>; |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 717 #endif | 721 #endif |
| 718 | 722 |
| 719 // Android doesn't use the plugins pages. | 723 // Android doesn't use the plugins pages. |
| 720 if (page_url.host() == chrome::kChromeUIPluginsHost) | 724 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 721 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 725 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
| 722 | 726 |
| 723 #endif | 727 #endif |
| 724 | 728 |
| 725 return NULL; | 729 return NULL; |
| 726 } | 730 } |
| OLD | NEW |