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

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

Issue 2204713006: Add chrome://usb-internals page for adding and removing test devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use typemaped types in the TestDeviceInfo struct. Created 4 years, 4 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/BUILD.gn ('k') | chrome/browser/ui/webui/usb_internals/BUILD.gn » ('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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 #include "chrome/browser/ui/webui/predictors/predictors_ui.h" 48 #include "chrome/browser/ui/webui/predictors/predictors_ui.h"
49 #include "chrome/browser/ui/webui/profiler_ui.h" 49 #include "chrome/browser/ui/webui/profiler_ui.h"
50 #include "chrome/browser/ui/webui/settings/md_settings_ui.h" 50 #include "chrome/browser/ui/webui/settings/md_settings_ui.h"
51 #include "chrome/browser/ui/webui/settings_utils.h" 51 #include "chrome/browser/ui/webui/settings_utils.h"
52 #include "chrome/browser/ui/webui/signin/md_user_manager_ui.h" 52 #include "chrome/browser/ui/webui/signin/md_user_manager_ui.h"
53 #include "chrome/browser/ui/webui/signin/profile_signin_confirmation_ui.h" 53 #include "chrome/browser/ui/webui/signin/profile_signin_confirmation_ui.h"
54 #include "chrome/browser/ui/webui/signin_internals_ui.h" 54 #include "chrome/browser/ui/webui/signin_internals_ui.h"
55 #include "chrome/browser/ui/webui/supervised_user_internals_ui.h" 55 #include "chrome/browser/ui/webui/supervised_user_internals_ui.h"
56 #include "chrome/browser/ui/webui/sync_internals_ui.h" 56 #include "chrome/browser/ui/webui/sync_internals_ui.h"
57 #include "chrome/browser/ui/webui/translate_internals/translate_internals_ui.h" 57 #include "chrome/browser/ui/webui/translate_internals/translate_internals_ui.h"
58 #include "chrome/browser/ui/webui/usb_internals/usb_internals_ui.h"
58 #include "chrome/browser/ui/webui/user_actions/user_actions_ui.h" 59 #include "chrome/browser/ui/webui/user_actions/user_actions_ui.h"
59 #include "chrome/browser/ui/webui/version_ui.h" 60 #include "chrome/browser/ui/webui/version_ui.h"
60 #include "chrome/common/chrome_features.h" 61 #include "chrome/common/chrome_features.h"
61 #include "chrome/common/chrome_switches.h" 62 #include "chrome/common/chrome_switches.h"
62 #include "chrome/common/pref_names.h" 63 #include "chrome/common/pref_names.h"
63 #include "chrome/common/url_constants.h" 64 #include "chrome/common/url_constants.h"
64 #include "components/dom_distiller/core/dom_distiller_constants.h" 65 #include "components/dom_distiller/core/dom_distiller_constants.h"
65 #include "components/dom_distiller/core/dom_distiller_features.h" 66 #include "components/dom_distiller/core/dom_distiller_features.h"
66 #include "components/dom_distiller/core/dom_distiller_service.h" 67 #include "components/dom_distiller/core/dom_distiller_service.h"
67 #include "components/dom_distiller/core/url_constants.h" 68 #include "components/dom_distiller/core/url_constants.h"
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 if (url.host() == chrome::kChromeUISupervisedUserInternalsHost) 370 if (url.host() == chrome::kChromeUISupervisedUserInternalsHost)
370 return &NewWebUI<SupervisedUserInternalsUI>; 371 return &NewWebUI<SupervisedUserInternalsUI>;
371 if (url.host() == chrome::kChromeUISupervisedUserPassphrasePageHost) 372 if (url.host() == chrome::kChromeUISupervisedUserPassphrasePageHost)
372 return &NewWebUI<ConstrainedWebDialogUI>; 373 return &NewWebUI<ConstrainedWebDialogUI>;
373 if (url.host() == chrome::kChromeUISyncInternalsHost) 374 if (url.host() == chrome::kChromeUISyncInternalsHost)
374 return &NewWebUI<SyncInternalsUI>; 375 return &NewWebUI<SyncInternalsUI>;
375 if (url.host() == chrome::kChromeUISyncResourcesHost) 376 if (url.host() == chrome::kChromeUISyncResourcesHost)
376 return &NewWebUI<WebDialogUI>; 377 return &NewWebUI<WebDialogUI>;
377 if (url.host() == chrome::kChromeUITranslateInternalsHost) 378 if (url.host() == chrome::kChromeUITranslateInternalsHost)
378 return &NewWebUI<TranslateInternalsUI>; 379 return &NewWebUI<TranslateInternalsUI>;
380 if (url.host() == chrome::kChromeUIUsbInternalsHost)
381 return &NewWebUI<UsbInternalsUI>;
379 if (url.host() == chrome::kChromeUIUserActionsHost) 382 if (url.host() == chrome::kChromeUIUserActionsHost)
380 return &NewWebUI<UserActionsUI>; 383 return &NewWebUI<UserActionsUI>;
381 if (url.host() == chrome::kChromeUIVersionHost) 384 if (url.host() == chrome::kChromeUIVersionHost)
382 return &NewWebUI<VersionUI>; 385 return &NewWebUI<VersionUI>;
383 386
384 /**************************************************************************** 387 /****************************************************************************
385 * OS Specific #defines 388 * OS Specific #defines
386 ***************************************************************************/ 389 ***************************************************************************/
387 #if !defined(OS_ANDROID) 390 #if !defined(OS_ANDROID)
388 #if !defined(OS_CHROMEOS) 391 #if !defined(OS_CHROMEOS)
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
809 #endif 812 #endif
810 813
811 // Android doesn't use the plugins pages. 814 // Android doesn't use the plugins pages.
812 if (page_url.host() == chrome::kChromeUIPluginsHost) 815 if (page_url.host() == chrome::kChromeUIPluginsHost)
813 return PluginsUI::GetFaviconResourceBytes(scale_factor); 816 return PluginsUI::GetFaviconResourceBytes(scale_factor);
814 817
815 #endif 818 #endif
816 819
817 return NULL; 820 return NULL;
818 } 821 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/webui/usb_internals/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698