Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Side by Side Diff: chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc

Issue 2003883002: [Offline pages] Create offline internals page for Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
102 #include "chrome/browser/ui/webui/snippets_internals_ui.h" 102 #include "chrome/browser/ui/webui/snippets_internals_ui.h"
103 #else 103 #else
104 #include "chrome/browser/signin/easy_unlock_service.h" 104 #include "chrome/browser/signin/easy_unlock_service.h"
105 #include "chrome/browser/signin/easy_unlock_service_factory.h" 105 #include "chrome/browser/signin/easy_unlock_service_factory.h"
106 #include "chrome/browser/ui/webui/copresence_ui.h" 106 #include "chrome/browser/ui/webui/copresence_ui.h"
107 #include "chrome/browser/ui/webui/devtools_ui.h" 107 #include "chrome/browser/ui/webui/devtools_ui.h"
108 #include "chrome/browser/ui/webui/inspect_ui.h" 108 #include "chrome/browser/ui/webui/inspect_ui.h"
109 #include "chrome/browser/ui/webui/md_downloads/md_downloads_ui.h" 109 #include "chrome/browser/ui/webui/md_downloads/md_downloads_ui.h"
110 #include "chrome/browser/ui/webui/md_history_ui.h" 110 #include "chrome/browser/ui/webui/md_history_ui.h"
111 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" 111 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h"
112 #include "chrome/browser/ui/webui/offline_internals_ui.h"
112 #include "chrome/browser/ui/webui/quota_internals/quota_internals_ui.h" 113 #include "chrome/browser/ui/webui/quota_internals/quota_internals_ui.h"
113 #include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_in ternals_ui.h" 114 #include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_in ternals_ui.h"
114 #include "chrome/browser/ui/webui/system_info_ui.h" 115 #include "chrome/browser/ui/webui/system_info_ui.h"
115 #include "chrome/browser/ui/webui/uber/uber_ui.h" 116 #include "chrome/browser/ui/webui/uber/uber_ui.h"
116 #endif 117 #endif
117 118
118 #if defined(OS_CHROMEOS) 119 #if defined(OS_CHROMEOS)
119 #include "base/sys_info.h" 120 #include "base/sys_info.h"
120 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" 121 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h"
121 #include "chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.h" 122 #include "chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.h"
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 if (url.host() == chrome::kChromeUIInstantHost) 332 if (url.host() == chrome::kChromeUIInstantHost)
332 return &NewWebUI<InstantUI>; 333 return &NewWebUI<InstantUI>;
333 if (url.host() == chrome::kChromeUIInterstitialHost) 334 if (url.host() == chrome::kChromeUIInterstitialHost)
334 return &NewWebUI<InterstitialUI>; 335 return &NewWebUI<InterstitialUI>;
335 if (url.host() == chrome::kChromeUIInvalidationsHost) 336 if (url.host() == chrome::kChromeUIInvalidationsHost)
336 return &NewWebUI<InvalidationsUI>; 337 return &NewWebUI<InvalidationsUI>;
337 if (url.host() == chrome::kChromeUILocalStateHost) 338 if (url.host() == chrome::kChromeUILocalStateHost)
338 return &NewWebUI<LocalStateUI>; 339 return &NewWebUI<LocalStateUI>;
339 if (url.host() == chrome::kChromeUINetInternalsHost) 340 if (url.host() == chrome::kChromeUINetInternalsHost)
340 return &NewWebUI<NetInternalsUI>; 341 return &NewWebUI<NetInternalsUI>;
342
jianli 2016/05/25 20:04:06 nit: new line not needed
chili 2016/05/25 20:22:55 Done.
341 if (url.host() == chrome::kChromeUIOmniboxHost) 343 if (url.host() == chrome::kChromeUIOmniboxHost)
342 return &NewWebUI<OmniboxUI>; 344 return &NewWebUI<OmniboxUI>;
343 if (url.host() == chrome::kChromeUIPasswordManagerInternalsHost) 345 if (url.host() == chrome::kChromeUIPasswordManagerInternalsHost)
344 return &NewWebUI<PasswordManagerInternalsUI>; 346 return &NewWebUI<PasswordManagerInternalsUI>;
345 if (url.host() == chrome::kChromeUIPredictorsHost) 347 if (url.host() == chrome::kChromeUIPredictorsHost)
346 return &NewWebUI<PredictorsUI>; 348 return &NewWebUI<PredictorsUI>;
347 if (url.host() == chrome::kChromeUIProfilerHost) 349 if (url.host() == chrome::kChromeUIProfilerHost)
348 return &NewWebUI<ProfilerUI>; 350 return &NewWebUI<ProfilerUI>;
349 if (url.host() == chrome::kChromeUISignInInternalsHost) 351 if (url.host() == chrome::kChromeUISignInInternalsHost)
350 return &NewWebUI<SignInInternalsUI>; 352 return &NewWebUI<SignInInternalsUI>;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 #if !defined(GOOGLE_CHROME_BUILD) && !defined(NDEBUG) 476 #if !defined(GOOGLE_CHROME_BUILD) && !defined(NDEBUG)
475 if (!base::SysInfo::IsRunningOnChromeOS()) { 477 if (!base::SysInfo::IsRunningOnChromeOS()) {
476 if (url.host() == chrome::kChromeUIDeviceEmulatorHost) 478 if (url.host() == chrome::kChromeUIDeviceEmulatorHost)
477 return &NewWebUI<DeviceEmulatorUI>; 479 return &NewWebUI<DeviceEmulatorUI>;
478 } 480 }
479 #endif // !defined(GOOGLE_CHROME_BUILD) && !defined(NDEBUG) 481 #endif // !defined(GOOGLE_CHROME_BUILD) && !defined(NDEBUG)
480 #endif // defined(OS_CHROMEOS) 482 #endif // defined(OS_CHROMEOS)
481 #if defined(OS_ANDROID) 483 #if defined(OS_ANDROID)
482 if (url.host() == chrome::kChromeUINetExportHost) 484 if (url.host() == chrome::kChromeUINetExportHost)
483 return &NewWebUI<NetExportUI>; 485 return &NewWebUI<NetExportUI>;
486 if (url.host() == chrome::kChromeUIOfflineInternalsHost)
487 return &NewWebUI<OfflineInternalsUI>;
484 if (url.host() == chrome::kChromeUIPopularSitesInternalsHost) 488 if (url.host() == chrome::kChromeUIPopularSitesInternalsHost)
485 return &NewWebUI<PopularSitesInternalsUI>; 489 return &NewWebUI<PopularSitesInternalsUI>;
486 if (url.host() == chrome::kChromeUISnippetsInternalsHost) 490 if (url.host() == chrome::kChromeUISnippetsInternalsHost)
487 return &NewWebUI<SnippetsInternalsUI>; 491 return &NewWebUI<SnippetsInternalsUI>;
488 #else 492 #else
489 if (url.host() == chrome::kChromeUICopresenceHost) 493 if (url.host() == chrome::kChromeUICopresenceHost)
490 return &NewWebUI<CopresenceUI>; 494 return &NewWebUI<CopresenceUI>;
491 if (url.SchemeIs(content::kChromeDevToolsScheme)) 495 if (url.SchemeIs(content::kChromeDevToolsScheme))
492 return &NewWebUI<DevToolsUI>; 496 return &NewWebUI<DevToolsUI>;
493 497
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 #endif 779 #endif
776 780
777 // Android doesn't use the plugins pages. 781 // Android doesn't use the plugins pages.
778 if (page_url.host() == chrome::kChromeUIPluginsHost) 782 if (page_url.host() == chrome::kChromeUIPluginsHost)
779 return PluginsUI::GetFaviconResourceBytes(scale_factor); 783 return PluginsUI::GetFaviconResourceBytes(scale_factor);
780 784
781 #endif 785 #endif
782 786
783 return NULL; 787 return NULL;
784 } 788 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698