| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 #endif | 100 #endif |
| 101 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS) | 101 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS) |
| 102 #include "chrome/browser/ui/webui/cast/cast_ui.h" | 102 #include "chrome/browser/ui/webui/cast/cast_ui.h" |
| 103 #endif | 103 #endif |
| 104 #endif | 104 #endif |
| 105 | 105 |
| 106 #if defined(OS_ANDROID) | 106 #if defined(OS_ANDROID) |
| 107 #include "chrome/browser/ui/webui/offline/offline_internals_ui.h" | 107 #include "chrome/browser/ui/webui/offline/offline_internals_ui.h" |
| 108 #include "chrome/browser/ui/webui/popular_sites_internals_ui.h" | 108 #include "chrome/browser/ui/webui/popular_sites_internals_ui.h" |
| 109 #include "chrome/browser/ui/webui/snippets_internals_ui.h" | 109 #include "chrome/browser/ui/webui/snippets_internals_ui.h" |
| 110 #if defined(ENABLE_VR_SHELL) |
| 111 #include "chrome/browser/ui/webui/vr_shell/vr_shell_ui_ui.h" |
| 112 #endif |
| 110 #else | 113 #else |
| 111 #include "chrome/browser/signin/easy_unlock_service.h" | 114 #include "chrome/browser/signin/easy_unlock_service.h" |
| 112 #include "chrome/browser/signin/easy_unlock_service_factory.h" | 115 #include "chrome/browser/signin/easy_unlock_service_factory.h" |
| 113 #include "chrome/browser/ui/webui/devtools_ui.h" | 116 #include "chrome/browser/ui/webui/devtools_ui.h" |
| 114 #include "chrome/browser/ui/webui/inspect_ui.h" | 117 #include "chrome/browser/ui/webui/inspect_ui.h" |
| 115 #include "chrome/browser/ui/webui/md_downloads/md_downloads_ui.h" | 118 #include "chrome/browser/ui/webui/md_downloads/md_downloads_ui.h" |
| 116 #include "chrome/browser/ui/webui/md_feedback/md_feedback_ui.h" | 119 #include "chrome/browser/ui/webui/md_feedback/md_feedback_ui.h" |
| 117 #include "chrome/browser/ui/webui/md_history_ui.h" | 120 #include "chrome/browser/ui/webui/md_history_ui.h" |
| 118 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" | 121 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" |
| 119 #include "chrome/browser/ui/webui/quota_internals/quota_internals_ui.h" | 122 #include "chrome/browser/ui/webui/quota_internals/quota_internals_ui.h" |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 #endif // !defined(NDEBUG) | 517 #endif // !defined(NDEBUG) |
| 515 #endif // defined(OS_CHROMEOS) | 518 #endif // defined(OS_CHROMEOS) |
| 516 #if defined(OS_ANDROID) | 519 #if defined(OS_ANDROID) |
| 517 if (url.host() == chrome::kChromeUIOfflineInternalsHost) | 520 if (url.host() == chrome::kChromeUIOfflineInternalsHost) |
| 518 return &NewWebUI<OfflineInternalsUI>; | 521 return &NewWebUI<OfflineInternalsUI>; |
| 519 if (url.host() == chrome::kChromeUIPopularSitesInternalsHost) | 522 if (url.host() == chrome::kChromeUIPopularSitesInternalsHost) |
| 520 return &NewWebUI<PopularSitesInternalsUI>; | 523 return &NewWebUI<PopularSitesInternalsUI>; |
| 521 if (url.host() == chrome::kChromeUISnippetsInternalsHost && | 524 if (url.host() == chrome::kChromeUISnippetsInternalsHost && |
| 522 !profile->IsOffTheRecord()) | 525 !profile->IsOffTheRecord()) |
| 523 return &NewWebUI<SnippetsInternalsUI>; | 526 return &NewWebUI<SnippetsInternalsUI>; |
| 527 #if defined(ENABLE_VR_SHELL) |
| 528 if (url.host() == chrome::kChromeUIVrShellUIHost) |
| 529 return &NewWebUI<VrShellUIUI>; |
| 530 #endif // defined(ENABLE_VR_SHELL) |
| 524 #else | 531 #else |
| 525 if (url.SchemeIs(content::kChromeDevToolsScheme)) | 532 if (url.SchemeIs(content::kChromeDevToolsScheme)) |
| 526 return &NewWebUI<DevToolsUI>; | 533 return &NewWebUI<DevToolsUI>; |
| 527 | 534 |
| 528 // chrome://inspect isn't supported on Android nor iOS. Page debugging is | 535 // chrome://inspect isn't supported on Android nor iOS. Page debugging is |
| 529 // handled by a remote devtools on the host machine, and other elements, i.e. | 536 // handled by a remote devtools on the host machine, and other elements, i.e. |
| 530 // extensions aren't supported. | 537 // extensions aren't supported. |
| 531 if (url.host() == chrome::kChromeUIInspectHost) | 538 if (url.host() == chrome::kChromeUIInspectHost) |
| 532 return &NewWebUI<InspectUI>; | 539 return &NewWebUI<InspectUI>; |
| 533 #endif | 540 #endif |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 819 #endif | 826 #endif |
| 820 | 827 |
| 821 // Android doesn't use the plugins pages. | 828 // Android doesn't use the plugins pages. |
| 822 if (page_url.host() == chrome::kChromeUIPluginsHost) | 829 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 823 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 830 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
| 824 | 831 |
| 825 #endif | 832 #endif |
| 826 | 833 |
| 827 return NULL; | 834 return NULL; |
| 828 } | 835 } |
| OLD | NEW |