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

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

Issue 2629573004: Add a chrome://webapks page. (Closed)
Patch Set: Add a chrome://webapks page. Created 3 years, 10 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 #endif 107 #endif
108 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS) 108 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS)
109 #include "chrome/browser/ui/webui/cast/cast_ui.h" 109 #include "chrome/browser/ui/webui/cast/cast_ui.h"
110 #endif 110 #endif
111 #endif 111 #endif
112 112
113 #if defined(OS_ANDROID) 113 #if defined(OS_ANDROID)
114 #include "chrome/browser/ui/webui/offline/offline_internals_ui.h" 114 #include "chrome/browser/ui/webui/offline/offline_internals_ui.h"
115 #include "chrome/browser/ui/webui/popular_sites_internals_ui.h" 115 #include "chrome/browser/ui/webui/popular_sites_internals_ui.h"
116 #include "chrome/browser/ui/webui/snippets_internals_ui.h" 116 #include "chrome/browser/ui/webui/snippets_internals_ui.h"
117 #include "chrome/browser/ui/webui/webapks_ui.h"
117 #if defined(ENABLE_VR_SHELL) || defined(ENABLE_WEBVR) 118 #if defined(ENABLE_VR_SHELL) || defined(ENABLE_WEBVR)
118 #include "chrome/browser/ui/webui/vr_shell/vr_shell_ui_ui.h" 119 #include "chrome/browser/ui/webui/vr_shell/vr_shell_ui_ui.h"
119 #endif 120 #endif
120 #else 121 #else
121 #include "chrome/browser/signin/easy_unlock_service.h" 122 #include "chrome/browser/signin/easy_unlock_service.h"
122 #include "chrome/browser/signin/easy_unlock_service_factory.h" 123 #include "chrome/browser/signin/easy_unlock_service_factory.h"
123 #include "chrome/browser/ui/webui/devtools_ui.h" 124 #include "chrome/browser/ui/webui/devtools_ui.h"
124 #include "chrome/browser/ui/webui/inspect_ui.h" 125 #include "chrome/browser/ui/webui/inspect_ui.h"
125 #include "chrome/browser/ui/webui/md_bookmarks/md_bookmarks_ui.h" 126 #include "chrome/browser/ui/webui/md_bookmarks/md_bookmarks_ui.h"
126 #include "chrome/browser/ui/webui/md_downloads/md_downloads_ui.h" 127 #include "chrome/browser/ui/webui/md_downloads/md_downloads_ui.h"
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 #endif // !defined(OFFICIAL_BUILD) 514 #endif // !defined(OFFICIAL_BUILD)
514 #endif // defined(OS_CHROMEOS) 515 #endif // defined(OS_CHROMEOS)
515 #if defined(OS_ANDROID) 516 #if defined(OS_ANDROID)
516 if (url.host_piece() == chrome::kChromeUIOfflineInternalsHost) 517 if (url.host_piece() == chrome::kChromeUIOfflineInternalsHost)
517 return &NewWebUI<OfflineInternalsUI>; 518 return &NewWebUI<OfflineInternalsUI>;
518 if (url.host_piece() == chrome::kChromeUIPopularSitesInternalsHost) 519 if (url.host_piece() == chrome::kChromeUIPopularSitesInternalsHost)
519 return &NewWebUI<PopularSitesInternalsUI>; 520 return &NewWebUI<PopularSitesInternalsUI>;
520 if (url.host_piece() == chrome::kChromeUISnippetsInternalsHost && 521 if (url.host_piece() == chrome::kChromeUISnippetsInternalsHost &&
521 !profile->IsOffTheRecord()) 522 !profile->IsOffTheRecord())
522 return &NewWebUI<SnippetsInternalsUI>; 523 return &NewWebUI<SnippetsInternalsUI>;
524 if (url.host_piece() == chrome::kChromeUIWebApksHost)
525 return &NewWebUI<WebApksUI>;
523 #if defined(ENABLE_VR_SHELL) || defined(ENABLE_WEBVR) 526 #if defined(ENABLE_VR_SHELL) || defined(ENABLE_WEBVR)
524 if (url.host_piece() == chrome::kChromeUIVrShellUIHost) 527 if (url.host_piece() == chrome::kChromeUIVrShellUIHost)
525 return &NewWebUI<VrShellUIUI>; 528 return &NewWebUI<VrShellUIUI>;
526 #endif 529 #endif
527 #else 530 #else
528 if (url.SchemeIs(content::kChromeDevToolsScheme)) { 531 if (url.SchemeIs(content::kChromeDevToolsScheme)) {
529 if (!DevToolsUIBindings::IsValidFrontendURL(url)) 532 if (!DevToolsUIBindings::IsValidFrontendURL(url))
530 return nullptr; 533 return nullptr;
531 return &NewWebUI<DevToolsUI>; 534 return &NewWebUI<DevToolsUI>;
532 } 535 }
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 822
820 #if BUILDFLAG(ENABLE_EXTENSIONS) 823 #if BUILDFLAG(ENABLE_EXTENSIONS)
821 if (page_url.host_piece() == chrome::kChromeUIExtensionsHost || 824 if (page_url.host_piece() == chrome::kChromeUIExtensionsHost ||
822 page_url.host_piece() == chrome::kChromeUIExtensionsFrameHost) 825 page_url.host_piece() == chrome::kChromeUIExtensionsFrameHost)
823 return extensions::ExtensionsUI::GetFaviconResourceBytes(scale_factor); 826 return extensions::ExtensionsUI::GetFaviconResourceBytes(scale_factor);
824 #endif // BUILDFLAG(ENABLE_EXTENSIONS) 827 #endif // BUILDFLAG(ENABLE_EXTENSIONS)
825 #endif // !defined(OS_ANDROID) 828 #endif // !defined(OS_ANDROID)
826 829
827 return NULL; 830 return NULL;
828 } 831 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698