Chromium Code Reviews| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 91 #include "chrome/browser/ui/webui/quota_internals/quota_internals_ui.h" | 91 #include "chrome/browser/ui/webui/quota_internals/quota_internals_ui.h" |
| 92 #include "chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui .h" | 92 #include "chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui .h" |
| 93 #include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_in ternals_ui.h" | 93 #include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_in ternals_ui.h" |
| 94 #include "chrome/browser/ui/webui/system_info_ui.h" | 94 #include "chrome/browser/ui/webui/system_info_ui.h" |
| 95 #include "chrome/browser/ui/webui/uber/uber_ui.h" | 95 #include "chrome/browser/ui/webui/uber/uber_ui.h" |
| 96 #endif | 96 #endif |
| 97 | 97 |
| 98 #if defined(OS_ANDROID) || defined(OS_IOS) | 98 #if defined(OS_ANDROID) || defined(OS_IOS) |
| 99 #include "chrome/browser/ui/webui/net_export_ui.h" | 99 #include "chrome/browser/ui/webui/net_export_ui.h" |
| 100 #else | 100 #else |
| 101 #include "chrome/browser/ui/webui/devtools_bridge_ui.h" | |
| 101 #include "chrome/browser/ui/webui/devtools_ui.h" | 102 #include "chrome/browser/ui/webui/devtools_ui.h" |
| 102 #include "chrome/browser/ui/webui/inspect_ui.h" | 103 #include "chrome/browser/ui/webui/inspect_ui.h" |
| 103 #endif | 104 #endif |
| 104 | 105 |
| 105 #if defined(OS_CHROMEOS) | 106 #if defined(OS_CHROMEOS) |
| 106 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" | 107 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" |
| 107 #include "chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.h" | 108 #include "chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.h" |
| 108 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" | 109 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" |
| 109 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" | 110 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" |
| 110 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" | 111 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 442 return &NewWebUI<chromeos::PowerUI>; | 443 return &NewWebUI<chromeos::PowerUI>; |
| 443 #endif // defined(OS_CHROMEOS) | 444 #endif // defined(OS_CHROMEOS) |
| 444 #if defined(OS_ANDROID) || defined(OS_IOS) | 445 #if defined(OS_ANDROID) || defined(OS_IOS) |
| 445 if (url.host() == chrome::kChromeUINetExportHost) | 446 if (url.host() == chrome::kChromeUINetExportHost) |
| 446 return &NewWebUI<NetExportUI>; | 447 return &NewWebUI<NetExportUI>; |
| 447 #else | 448 #else |
| 448 if (url.host() == chrome::kChromeUIChromeSigninHost) | 449 if (url.host() == chrome::kChromeUIChromeSigninHost) |
| 449 return &NewWebUI<InlineLoginUI>; | 450 return &NewWebUI<InlineLoginUI>; |
| 450 if (url.SchemeIs(content::kChromeDevToolsScheme)) | 451 if (url.SchemeIs(content::kChromeDevToolsScheme)) |
| 451 return &NewWebUI<DevToolsUI>; | 452 return &NewWebUI<DevToolsUI>; |
| 453 if (url.host() == chrome::kChromeUIDevToolsBridgeClientHost) | |
|
dgozman
2014/11/26 11:33:25
kChromeUIDevToolsBridgeHost?
pfeldman
2014/11/26 11:56:42
kChromeUIDevToolsWebRTCTransportHost
| |
| 454 return &NewWebUI<DevToolsBridgeUI>; | |
| 452 // chrome://inspect isn't supported on Android nor iOS. Page debugging is | 455 // chrome://inspect isn't supported on Android nor iOS. Page debugging is |
| 453 // handled by a remote devtools on the host machine, and other elements, i.e. | 456 // handled by a remote devtools on the host machine, and other elements, i.e. |
| 454 // extensions aren't supported. | 457 // extensions aren't supported. |
| 455 if (url.host() == chrome::kChromeUIInspectHost) | 458 if (url.host() == chrome::kChromeUIInspectHost) |
| 456 return &NewWebUI<InspectUI>; | 459 return &NewWebUI<InspectUI>; |
| 457 #endif | 460 #endif |
| 458 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) && !defined(OS_IOS) | 461 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) && !defined(OS_IOS) |
| 459 if (url.host() == chrome::kChromeUIUserManagerHost && | 462 if (url.host() == chrome::kChromeUIUserManagerHost && |
| 460 switches::IsNewAvatarMenu()) { | 463 switches::IsNewAvatarMenu()) { |
| 461 return &NewWebUI<UserManagerUI>; | 464 return &NewWebUI<UserManagerUI>; |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 714 #endif | 717 #endif |
| 715 | 718 |
| 716 // Android doesn't use the plugins pages. | 719 // Android doesn't use the plugins pages. |
| 717 if (page_url.host() == chrome::kChromeUIPluginsHost) | 720 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 718 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 721 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
| 719 | 722 |
| 720 #endif | 723 #endif |
| 721 | 724 |
| 722 return NULL; | 725 return NULL; |
| 723 } | 726 } |
| OLD | NEW |