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

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

Issue 17063004: Adding WebRTC log upload list under chrome://webrtc-logs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 5 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 | Annotate | Revision Log
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 "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 #include "ui/web_dialogs/web_dialog_ui.h" 65 #include "ui/web_dialogs/web_dialog_ui.h"
66 66
67 #if !defined(DISABLE_NACL) 67 #if !defined(DISABLE_NACL)
68 #include "chrome/browser/ui/webui/nacl_ui.h" 68 #include "chrome/browser/ui/webui/nacl_ui.h"
69 #endif 69 #endif
70 70
71 #if defined(ENABLE_CONFIGURATION_POLICY) 71 #if defined(ENABLE_CONFIGURATION_POLICY)
72 #include "chrome/browser/ui/webui/policy_ui.h" 72 #include "chrome/browser/ui/webui/policy_ui.h"
73 #endif 73 #endif
74 74
75 #if defined(ENABLE_WEBRTC)
76 #include "chrome/browser/ui/webui/media/webrtc_logs_ui.h"
77 #endif
78
75 #if defined(OS_ANDROID) 79 #if defined(OS_ANDROID)
76 #include "chrome/browser/ui/webui/welcome_ui_android.h" 80 #include "chrome/browser/ui/webui/welcome_ui_android.h"
77 #else 81 #else
78 #include "chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui .h" 82 #include "chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui .h"
79 #include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_in ternals_ui.h" 83 #include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_in ternals_ui.h"
80 #include "chrome/browser/ui/webui/uber/uber_ui.h" 84 #include "chrome/browser/ui/webui/uber/uber_ui.h"
81 #endif 85 #endif
82 86
83 #if defined(OS_ANDROID) || defined(OS_IOS) 87 #if defined(OS_ANDROID) || defined(OS_IOS)
84 #include "chrome/browser/ui/webui/net_export_ui.h" 88 #include "chrome/browser/ui/webui/net_export_ui.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 if (url.host() == chrome::kChromeUISyncInternalsHost) 247 if (url.host() == chrome::kChromeUISyncInternalsHost)
244 return &NewWebUI<SyncInternalsUI>; 248 return &NewWebUI<SyncInternalsUI>;
245 if (url.host() == chrome::kChromeUISyncResourcesHost) 249 if (url.host() == chrome::kChromeUISyncResourcesHost)
246 return &NewWebUI<WebDialogUI>; 250 return &NewWebUI<WebDialogUI>;
247 if (url.host() == chrome::kChromeUITranslateInternalsHost) 251 if (url.host() == chrome::kChromeUITranslateInternalsHost)
248 return &NewWebUI<TranslateInternalsUI>; 252 return &NewWebUI<TranslateInternalsUI>;
249 if (url.host() == chrome::kChromeUIUserActionsHost) 253 if (url.host() == chrome::kChromeUIUserActionsHost)
250 return &NewWebUI<UserActionsUI>; 254 return &NewWebUI<UserActionsUI>;
251 if (url.host() == chrome::kChromeUIVersionHost) 255 if (url.host() == chrome::kChromeUIVersionHost)
252 return &NewWebUI<VersionUI>; 256 return &NewWebUI<VersionUI>;
257 #if defined(ENABLE_WEBRTC)
258 if (url.host() == chrome::kChromeUIWebRtcLogsHost)
259 return &NewWebUI<WebRtcLogsUI>;
260 #endif
253 261
254 /**************************************************************************** 262 /****************************************************************************
255 * OS Specific #defines 263 * OS Specific #defines
256 ***************************************************************************/ 264 ***************************************************************************/
257 #if defined(OS_ANDROID) 265 #if defined(OS_ANDROID)
258 if (url.host() == chrome::kChromeUIWelcomeHost) 266 if (url.host() == chrome::kChromeUIWelcomeHost)
259 return &NewWebUI<WelcomeUI>; 267 return &NewWebUI<WelcomeUI>;
260 #else 268 #else
261 // AppLauncherPage is not needed on Android. 269 // AppLauncherPage is not needed on Android.
262 if (url.host() == chrome::kChromeUIAppLauncherPageHost && 270 if (url.host() == chrome::kChromeUIAppLauncherPageHost &&
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 if (page_url.host() == chrome::kChromeUISettingsFrameHost) 575 if (page_url.host() == chrome::kChromeUISettingsFrameHost)
568 return options::OptionsUI::GetFaviconResourceBytes(scale_factor); 576 return options::OptionsUI::GetFaviconResourceBytes(scale_factor);
569 577
570 // Android doesn't use the plugins pages. 578 // Android doesn't use the plugins pages.
571 if (page_url.host() == chrome::kChromeUIPluginsHost) 579 if (page_url.host() == chrome::kChromeUIPluginsHost)
572 return PluginsUI::GetFaviconResourceBytes(scale_factor); 580 return PluginsUI::GetFaviconResourceBytes(scale_factor);
573 #endif 581 #endif
574 582
575 return NULL; 583 return NULL;
576 } 584 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/media/webrtc_logs.js ('k') | chrome/browser/ui/webui/media/webrtc_logs_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698