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

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
« no previous file with comments | « chrome/browser/ui/DEPS ('k') | chrome/browser/ui/webui/webapks_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 #endif // !defined(OFFICIAL_BUILD) 513 #endif // !defined(OFFICIAL_BUILD)
513 #endif // defined(OS_CHROMEOS) 514 #endif // defined(OS_CHROMEOS)
514 #if defined(OS_ANDROID) 515 #if defined(OS_ANDROID)
515 if (url.host_piece() == chrome::kChromeUIOfflineInternalsHost) 516 if (url.host_piece() == chrome::kChromeUIOfflineInternalsHost)
516 return &NewWebUI<OfflineInternalsUI>; 517 return &NewWebUI<OfflineInternalsUI>;
517 if (url.host_piece() == chrome::kChromeUIPopularSitesInternalsHost) 518 if (url.host_piece() == chrome::kChromeUIPopularSitesInternalsHost)
518 return &NewWebUI<PopularSitesInternalsUI>; 519 return &NewWebUI<PopularSitesInternalsUI>;
519 if (url.host_piece() == chrome::kChromeUISnippetsInternalsHost && 520 if (url.host_piece() == chrome::kChromeUISnippetsInternalsHost &&
520 !profile->IsOffTheRecord()) 521 !profile->IsOffTheRecord())
521 return &NewWebUI<SnippetsInternalsUI>; 522 return &NewWebUI<SnippetsInternalsUI>;
523 if (url.host_piece() == chrome::kChromeUIWebApksHost)
524 return &NewWebUI<WebApksUI>;
522 #if defined(ENABLE_VR_SHELL) || defined(ENABLE_WEBVR) 525 #if defined(ENABLE_VR_SHELL) || defined(ENABLE_WEBVR)
523 if (url.host_piece() == chrome::kChromeUIVrShellUIHost) 526 if (url.host_piece() == chrome::kChromeUIVrShellUIHost)
524 return &NewWebUI<VrShellUIUI>; 527 return &NewWebUI<VrShellUIUI>;
525 #endif 528 #endif
526 #else 529 #else
527 if (url.SchemeIs(content::kChromeDevToolsScheme)) { 530 if (url.SchemeIs(content::kChromeDevToolsScheme)) {
528 if (!DevToolsUIBindings::IsValidFrontendURL(url)) 531 if (!DevToolsUIBindings::IsValidFrontendURL(url))
529 return nullptr; 532 return nullptr;
530 return &NewWebUI<DevToolsUI>; 533 return &NewWebUI<DevToolsUI>;
531 } 534 }
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 821
819 #if BUILDFLAG(ENABLE_EXTENSIONS) 822 #if BUILDFLAG(ENABLE_EXTENSIONS)
820 if (page_url.host_piece() == chrome::kChromeUIExtensionsHost || 823 if (page_url.host_piece() == chrome::kChromeUIExtensionsHost ||
821 page_url.host_piece() == chrome::kChromeUIExtensionsFrameHost) 824 page_url.host_piece() == chrome::kChromeUIExtensionsFrameHost)
822 return extensions::ExtensionsUI::GetFaviconResourceBytes(scale_factor); 825 return extensions::ExtensionsUI::GetFaviconResourceBytes(scale_factor);
823 #endif // BUILDFLAG(ENABLE_EXTENSIONS) 826 #endif // BUILDFLAG(ENABLE_EXTENSIONS)
824 #endif // !defined(OS_ANDROID) 827 #endif // !defined(OS_ANDROID)
825 828
826 return NULL; 829 return NULL;
827 } 830 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/DEPS ('k') | chrome/browser/ui/webui/webapks_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698