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