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

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

Issue 2629573004: Add a chrome://webapks page. (Closed)
Patch Set: Adds an about:webapks page with information about all installed Web APKs on the device Created 3 years, 11 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 #endif 108 #endif
109 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS) 109 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS)
110 #include "chrome/browser/ui/webui/cast/cast_ui.h" 110 #include "chrome/browser/ui/webui/cast/cast_ui.h"
111 #endif 111 #endif
112 #endif 112 #endif
113 113
114 #if defined(OS_ANDROID) 114 #if defined(OS_ANDROID)
115 #include "chrome/browser/ui/webui/offline/offline_internals_ui.h" 115 #include "chrome/browser/ui/webui/offline/offline_internals_ui.h"
116 #include "chrome/browser/ui/webui/popular_sites_internals_ui.h" 116 #include "chrome/browser/ui/webui/popular_sites_internals_ui.h"
117 #include "chrome/browser/ui/webui/snippets_internals_ui.h" 117 #include "chrome/browser/ui/webui/snippets_internals_ui.h"
118 #include "chrome/browser/ui/webui/webapks_ui.h"
118 #if defined(ENABLE_VR_SHELL) || defined(ENABLE_WEBVR) 119 #if defined(ENABLE_VR_SHELL) || defined(ENABLE_WEBVR)
119 #include "chrome/browser/ui/webui/vr_shell/vr_shell_ui_ui.h" 120 #include "chrome/browser/ui/webui/vr_shell/vr_shell_ui_ui.h"
120 #endif 121 #endif
121 #else 122 #else
122 #include "chrome/browser/signin/easy_unlock_service.h" 123 #include "chrome/browser/signin/easy_unlock_service.h"
123 #include "chrome/browser/signin/easy_unlock_service_factory.h" 124 #include "chrome/browser/signin/easy_unlock_service_factory.h"
124 #include "chrome/browser/ui/webui/devtools_ui.h" 125 #include "chrome/browser/ui/webui/devtools_ui.h"
125 #include "chrome/browser/ui/webui/inspect_ui.h" 126 #include "chrome/browser/ui/webui/inspect_ui.h"
126 #include "chrome/browser/ui/webui/md_bookmarks/md_bookmarks_ui.h" 127 #include "chrome/browser/ui/webui/md_bookmarks/md_bookmarks_ui.h"
127 #include "chrome/browser/ui/webui/md_downloads/md_downloads_ui.h" 128 #include "chrome/browser/ui/webui/md_downloads/md_downloads_ui.h"
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 #endif // !defined(OFFICIAL_BUILD) 515 #endif // !defined(OFFICIAL_BUILD)
515 #endif // defined(OS_CHROMEOS) 516 #endif // defined(OS_CHROMEOS)
516 #if defined(OS_ANDROID) 517 #if defined(OS_ANDROID)
517 if (url.host_piece() == chrome::kChromeUIOfflineInternalsHost) 518 if (url.host_piece() == chrome::kChromeUIOfflineInternalsHost)
518 return &NewWebUI<OfflineInternalsUI>; 519 return &NewWebUI<OfflineInternalsUI>;
519 if (url.host_piece() == chrome::kChromeUIPopularSitesInternalsHost) 520 if (url.host_piece() == chrome::kChromeUIPopularSitesInternalsHost)
520 return &NewWebUI<PopularSitesInternalsUI>; 521 return &NewWebUI<PopularSitesInternalsUI>;
521 if (url.host_piece() == chrome::kChromeUISnippetsInternalsHost && 522 if (url.host_piece() == chrome::kChromeUISnippetsInternalsHost &&
522 !profile->IsOffTheRecord()) 523 !profile->IsOffTheRecord())
523 return &NewWebUI<SnippetsInternalsUI>; 524 return &NewWebUI<SnippetsInternalsUI>;
525 if (url.host_piece() == chrome::kChromeUIWebAPKsHost)
526 return &NewWebUI<WebAPKsUI>;
524 #if defined(ENABLE_VR_SHELL) || defined(ENABLE_WEBVR) 527 #if defined(ENABLE_VR_SHELL) || defined(ENABLE_WEBVR)
525 if (url.host_piece() == chrome::kChromeUIVrShellUIHost) 528 if (url.host_piece() == chrome::kChromeUIVrShellUIHost)
526 return &NewWebUI<VrShellUIUI>; 529 return &NewWebUI<VrShellUIUI>;
527 #endif 530 #endif
528 #else 531 #else
529 if (url.SchemeIs(content::kChromeDevToolsScheme)) { 532 if (url.SchemeIs(content::kChromeDevToolsScheme)) {
530 if (!DevToolsUIBindings::IsValidFrontendURL(url)) 533 if (!DevToolsUIBindings::IsValidFrontendURL(url))
531 return nullptr; 534 return nullptr;
532 return &NewWebUI<DevToolsUI>; 535 return &NewWebUI<DevToolsUI>;
533 } 536 }
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 #endif 831 #endif
829 832
830 // Android doesn't use the plugins pages. 833 // Android doesn't use the plugins pages.
831 if (page_url.host_piece() == chrome::kChromeUIPluginsHost) 834 if (page_url.host_piece() == chrome::kChromeUIPluginsHost)
832 return PluginsUI::GetFaviconResourceBytes(scale_factor); 835 return PluginsUI::GetFaviconResourceBytes(scale_factor);
833 836
834 #endif 837 #endif
835 838
836 return NULL; 839 return NULL;
837 } 840 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698