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

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

Issue 11828036: First cut at UI for saving net_logs data into a temporary file on (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 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 | 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_proxy.h" 10 #include "base/message_loop_proxy.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 #include "chrome/browser/ui/webui/policy_ui.h" 71 #include "chrome/browser/ui/webui/policy_ui.h"
72 #endif 72 #endif
73 73
74 #if defined(OS_ANDROID) 74 #if defined(OS_ANDROID)
75 #include "chrome/browser/ui/webui/welcome_ui_android.h" 75 #include "chrome/browser/ui/webui/welcome_ui_android.h"
76 #else 76 #else
77 #include "chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui .h" 77 #include "chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui .h"
78 #include "chrome/browser/ui/webui/uber/uber_ui.h" 78 #include "chrome/browser/ui/webui/uber/uber_ui.h"
79 #endif 79 #endif
80 80
81 #if defined(OS_ANDROID) || defined(OS_IOS)
82 #include "chrome/browser/ui/webui/net_export_ui.h"
83 #endif
84
81 #if defined(OS_CHROMEOS) 85 #if defined(OS_CHROMEOS)
82 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" 86 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h"
83 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" 87 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h"
84 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" 88 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h"
85 #include "chrome/browser/ui/webui/chromeos/diagnostics/diagnostics_ui.h" 89 #include "chrome/browser/ui/webui/chromeos/diagnostics/diagnostics_ui.h"
86 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" 90 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h"
87 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" 91 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h"
88 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" 92 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h"
89 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" 93 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
90 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" 94 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 return &NewWebUI<MediaInternalsUI>; 216 return &NewWebUI<MediaInternalsUI>;
213 if (url.host() == chrome::kChromeUIMemoryInternalsHost && 217 if (url.host() == chrome::kChromeUIMemoryInternalsHost &&
214 CommandLine::ForCurrentProcess()->HasSwitch( 218 CommandLine::ForCurrentProcess()->HasSwitch(
215 switches::kEnableMemoryInternalsUI)) { 219 switches::kEnableMemoryInternalsUI)) {
216 return &NewWebUI<MemoryInternalsUI>; 220 return &NewWebUI<MemoryInternalsUI>;
217 } 221 }
218 #if !defined(DISABLE_NACL) 222 #if !defined(DISABLE_NACL)
219 if (url.host() == chrome::kChromeUINaClHost) 223 if (url.host() == chrome::kChromeUINaClHost)
220 return &NewWebUI<NaClUI>; 224 return &NewWebUI<NaClUI>;
221 #endif 225 #endif
226 #if defined(OS_ANDROID) || defined(OS_IOS)
227 if (url.host() == chrome::kChromeUINetExportHost)
228 return &NewWebUI<NetExportUI>;
229 #endif
222 if (url.host() == chrome::kChromeUINetInternalsHost) 230 if (url.host() == chrome::kChromeUINetInternalsHost)
223 return &NewWebUI<NetInternalsUI>; 231 return &NewWebUI<NetInternalsUI>;
224 if (url.host() == chrome::kChromeUIOmniboxHost) 232 if (url.host() == chrome::kChromeUIOmniboxHost)
225 return &NewWebUI<OmniboxUI>; 233 return &NewWebUI<OmniboxUI>;
226 if (url.host() == chrome::kChromeUIPredictorsHost) 234 if (url.host() == chrome::kChromeUIPredictorsHost)
227 return &NewWebUI<PredictorsUI>; 235 return &NewWebUI<PredictorsUI>;
228 if (url.host() == chrome::kChromeUIProfilerHost) 236 if (url.host() == chrome::kChromeUIProfilerHost)
229 return &NewWebUI<ProfilerUI>; 237 return &NewWebUI<ProfilerUI>;
230 if (url.host() == chrome::kChromeUIQuotaInternalsHost) 238 if (url.host() == chrome::kChromeUIQuotaInternalsHost)
231 return &NewWebUI<QuotaInternalsUI>; 239 return &NewWebUI<QuotaInternalsUI>;
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 if (page_url.host() == chrome::kChromeUISettingsFrameHost) 565 if (page_url.host() == chrome::kChromeUISettingsFrameHost)
558 return options::OptionsUI::GetFaviconResourceBytes(scale_factor); 566 return options::OptionsUI::GetFaviconResourceBytes(scale_factor);
559 567
560 // Android doesn't use the plugins pages. 568 // Android doesn't use the plugins pages.
561 if (page_url.host() == chrome::kChromeUIPluginsHost) 569 if (page_url.host() == chrome::kChromeUIPluginsHost)
562 return PluginsUI::GetFaviconResourceBytes(scale_factor); 570 return PluginsUI::GetFaviconResourceBytes(scale_factor);
563 #endif 571 #endif
564 572
565 return NULL; 573 return NULL;
566 } 574 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/web_dev_style/js_checker.py ('k') | chrome/browser/ui/webui/net_export_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698