| 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 #endif | 103 #endif |
| 104 | 104 |
| 105 #if defined(OS_ANDROID) | 105 #if defined(OS_ANDROID) |
| 106 #include "chrome/browser/ui/webui/offline_internals_ui.h" | 106 #include "chrome/browser/ui/webui/offline_internals_ui.h" |
| 107 #include "chrome/browser/ui/webui/popular_sites_internals_ui.h" | 107 #include "chrome/browser/ui/webui/popular_sites_internals_ui.h" |
| 108 #include "chrome/browser/ui/webui/snippets_internals_ui.h" | 108 #include "chrome/browser/ui/webui/snippets_internals_ui.h" |
| 109 #else | 109 #else |
| 110 #include "chrome/browser/signin/easy_unlock_service.h" | 110 #include "chrome/browser/signin/easy_unlock_service.h" |
| 111 #include "chrome/browser/signin/easy_unlock_service_factory.h" | 111 #include "chrome/browser/signin/easy_unlock_service_factory.h" |
| 112 #include "chrome/browser/ui/webui/copresence_ui.h" | |
| 113 #include "chrome/browser/ui/webui/devtools_ui.h" | 112 #include "chrome/browser/ui/webui/devtools_ui.h" |
| 114 #include "chrome/browser/ui/webui/inspect_ui.h" | 113 #include "chrome/browser/ui/webui/inspect_ui.h" |
| 115 #include "chrome/browser/ui/webui/md_downloads/md_downloads_ui.h" | 114 #include "chrome/browser/ui/webui/md_downloads/md_downloads_ui.h" |
| 116 #include "chrome/browser/ui/webui/md_feedback/md_feedback_ui.h" | 115 #include "chrome/browser/ui/webui/md_feedback/md_feedback_ui.h" |
| 117 #include "chrome/browser/ui/webui/md_history_ui.h" | 116 #include "chrome/browser/ui/webui/md_history_ui.h" |
| 118 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" | 117 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" |
| 119 #include "chrome/browser/ui/webui/quota_internals/quota_internals_ui.h" | 118 #include "chrome/browser/ui/webui/quota_internals/quota_internals_ui.h" |
| 120 #include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_in
ternals_ui.h" | 119 #include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_in
ternals_ui.h" |
| 121 #include "chrome/browser/ui/webui/system_info_ui.h" | 120 #include "chrome/browser/ui/webui/system_info_ui.h" |
| 122 #include "chrome/browser/ui/webui/uber/uber_ui.h" | 121 #include "chrome/browser/ui/webui/uber/uber_ui.h" |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 #endif // defined(OS_CHROMEOS) | 507 #endif // defined(OS_CHROMEOS) |
| 509 #if defined(OS_ANDROID) | 508 #if defined(OS_ANDROID) |
| 510 if (url.host() == chrome::kChromeUIOfflineInternalsHost) | 509 if (url.host() == chrome::kChromeUIOfflineInternalsHost) |
| 511 return &NewWebUI<OfflineInternalsUI>; | 510 return &NewWebUI<OfflineInternalsUI>; |
| 512 if (url.host() == chrome::kChromeUIPopularSitesInternalsHost) | 511 if (url.host() == chrome::kChromeUIPopularSitesInternalsHost) |
| 513 return &NewWebUI<PopularSitesInternalsUI>; | 512 return &NewWebUI<PopularSitesInternalsUI>; |
| 514 if (url.host() == chrome::kChromeUISnippetsInternalsHost && | 513 if (url.host() == chrome::kChromeUISnippetsInternalsHost && |
| 515 !profile->IsOffTheRecord()) | 514 !profile->IsOffTheRecord()) |
| 516 return &NewWebUI<SnippetsInternalsUI>; | 515 return &NewWebUI<SnippetsInternalsUI>; |
| 517 #else | 516 #else |
| 518 if (url.host() == chrome::kChromeUICopresenceHost) | |
| 519 return &NewWebUI<CopresenceUI>; | |
| 520 if (url.SchemeIs(content::kChromeDevToolsScheme)) | 517 if (url.SchemeIs(content::kChromeDevToolsScheme)) |
| 521 return &NewWebUI<DevToolsUI>; | 518 return &NewWebUI<DevToolsUI>; |
| 522 | 519 |
| 523 // chrome://inspect isn't supported on Android nor iOS. Page debugging is | 520 // chrome://inspect isn't supported on Android nor iOS. Page debugging is |
| 524 // handled by a remote devtools on the host machine, and other elements, i.e. | 521 // handled by a remote devtools on the host machine, and other elements, i.e. |
| 525 // extensions aren't supported. | 522 // extensions aren't supported. |
| 526 if (url.host() == chrome::kChromeUIInspectHost) | 523 if (url.host() == chrome::kChromeUIInspectHost) |
| 527 return &NewWebUI<InspectUI>; | 524 return &NewWebUI<InspectUI>; |
| 528 #endif | 525 #endif |
| 529 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) | 526 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 812 #endif | 809 #endif |
| 813 | 810 |
| 814 // Android doesn't use the plugins pages. | 811 // Android doesn't use the plugins pages. |
| 815 if (page_url.host() == chrome::kChromeUIPluginsHost) | 812 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 816 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 813 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
| 817 | 814 |
| 818 #endif | 815 #endif |
| 819 | 816 |
| 820 return NULL; | 817 return NULL; |
| 821 } | 818 } |
| OLD | NEW |