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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 #endif | 103 #endif |
104 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS) | 104 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS) |
105 #include "chrome/browser/ui/webui/cast/cast_ui.h" | 105 #include "chrome/browser/ui/webui/cast/cast_ui.h" |
106 #endif | 106 #endif |
107 #endif | 107 #endif |
108 | 108 |
109 #if defined(OS_ANDROID) | 109 #if defined(OS_ANDROID) |
110 #include "chrome/browser/ui/webui/offline/offline_internals_ui.h" | 110 #include "chrome/browser/ui/webui/offline/offline_internals_ui.h" |
111 #include "chrome/browser/ui/webui/popular_sites_internals_ui.h" | 111 #include "chrome/browser/ui/webui/popular_sites_internals_ui.h" |
112 #include "chrome/browser/ui/webui/snippets_internals_ui.h" | 112 #include "chrome/browser/ui/webui/snippets_internals_ui.h" |
113 #if defined(ENABLE_VR_SHELL) | 113 #if defined(ENABLE_VR_SHELL) || defined(ENABLE_WEBVR) |
114 #include "chrome/browser/ui/webui/vr_shell/vr_shell_ui_ui.h" | 114 #include "chrome/browser/ui/webui/vr_shell/vr_shell_ui_ui.h" |
115 #endif | 115 #endif |
116 #else | 116 #else |
117 #include "chrome/browser/signin/easy_unlock_service.h" | 117 #include "chrome/browser/signin/easy_unlock_service.h" |
118 #include "chrome/browser/signin/easy_unlock_service_factory.h" | 118 #include "chrome/browser/signin/easy_unlock_service_factory.h" |
119 #include "chrome/browser/ui/webui/devtools_ui.h" | 119 #include "chrome/browser/ui/webui/devtools_ui.h" |
120 #include "chrome/browser/ui/webui/inspect_ui.h" | 120 #include "chrome/browser/ui/webui/inspect_ui.h" |
121 #include "chrome/browser/ui/webui/md_downloads/md_downloads_ui.h" | 121 #include "chrome/browser/ui/webui/md_downloads/md_downloads_ui.h" |
122 #include "chrome/browser/ui/webui/md_feedback/md_feedback_ui.h" | 122 #include "chrome/browser/ui/webui/md_feedback/md_feedback_ui.h" |
123 #include "chrome/browser/ui/webui/md_history_ui.h" | 123 #include "chrome/browser/ui/webui/md_history_ui.h" |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 #endif // !defined(NDEBUG) | 525 #endif // !defined(NDEBUG) |
526 #endif // defined(OS_CHROMEOS) | 526 #endif // defined(OS_CHROMEOS) |
527 #if defined(OS_ANDROID) | 527 #if defined(OS_ANDROID) |
528 if (url.host() == chrome::kChromeUIOfflineInternalsHost) | 528 if (url.host() == chrome::kChromeUIOfflineInternalsHost) |
529 return &NewWebUI<OfflineInternalsUI>; | 529 return &NewWebUI<OfflineInternalsUI>; |
530 if (url.host() == chrome::kChromeUIPopularSitesInternalsHost) | 530 if (url.host() == chrome::kChromeUIPopularSitesInternalsHost) |
531 return &NewWebUI<PopularSitesInternalsUI>; | 531 return &NewWebUI<PopularSitesInternalsUI>; |
532 if (url.host() == chrome::kChromeUISnippetsInternalsHost && | 532 if (url.host() == chrome::kChromeUISnippetsInternalsHost && |
533 !profile->IsOffTheRecord()) | 533 !profile->IsOffTheRecord()) |
534 return &NewWebUI<SnippetsInternalsUI>; | 534 return &NewWebUI<SnippetsInternalsUI>; |
535 #if defined(ENABLE_VR_SHELL) | 535 #if defined(ENABLE_VR_SHELL) || defined(ENABLE_WEBVR) |
536 if (url.host() == chrome::kChromeUIVrShellUIHost) | 536 if (url.host() == chrome::kChromeUIVrShellUIHost) |
537 return &NewWebUI<VrShellUIUI>; | 537 return &NewWebUI<VrShellUIUI>; |
538 #endif // defined(ENABLE_VR_SHELL) | 538 #endif |
539 #else | 539 #else |
540 if (url.SchemeIs(content::kChromeDevToolsScheme)) | 540 if (url.SchemeIs(content::kChromeDevToolsScheme)) |
541 return &NewWebUI<DevToolsUI>; | 541 return &NewWebUI<DevToolsUI>; |
542 | 542 |
543 // chrome://inspect isn't supported on Android nor iOS. Page debugging is | 543 // chrome://inspect isn't supported on Android nor iOS. Page debugging is |
544 // handled by a remote devtools on the host machine, and other elements, i.e. | 544 // handled by a remote devtools on the host machine, and other elements, i.e. |
545 // extensions aren't supported. | 545 // extensions aren't supported. |
546 if (url.host() == chrome::kChromeUIInspectHost) | 546 if (url.host() == chrome::kChromeUIInspectHost) |
547 return &NewWebUI<InspectUI>; | 547 return &NewWebUI<InspectUI>; |
548 #endif | 548 #endif |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
836 #endif | 836 #endif |
837 | 837 |
838 // Android doesn't use the plugins pages. | 838 // Android doesn't use the plugins pages. |
839 if (page_url.host() == chrome::kChromeUIPluginsHost) | 839 if (page_url.host() == chrome::kChromeUIPluginsHost) |
840 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 840 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
841 | 841 |
842 #endif | 842 #endif |
843 | 843 |
844 return NULL; | 844 return NULL; |
845 } | 845 } |
OLD | NEW |