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

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

Issue 9150021: Rename WebUI to WebUIImpl. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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_factory.h" 5 #include "chrome/browser/ui/webui/chrome_web_ui_factory.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/about_flags.h" 8 #include "chrome/browser/about_flags.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/extensions/extension_service.h" 10 #include "chrome/browser/extensions/extension_service.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 #if defined(OS_POSIX) && !defined(OS_MACOSX) 81 #if defined(OS_POSIX) && !defined(OS_MACOSX)
82 #include "chrome/browser/ui/webui/certificate_viewer_ui.h" 82 #include "chrome/browser/ui/webui/certificate_viewer_ui.h"
83 #endif 83 #endif
84 84
85 #if !defined(USE_AURA) 85 #if !defined(USE_AURA)
86 #include "chrome/browser/ui/webui/input_window_dialog_ui.h" 86 #include "chrome/browser/ui/webui/input_window_dialog_ui.h"
87 #endif 87 #endif
88 88
89 using content::WebContents; 89 using content::WebContents;
90 using content::WebUI;
90 using content::WebUIController; 91 using content::WebUIController;
91 92
92 namespace { 93 namespace {
93 94
94 // A function for creating a new WebUI. The caller owns the return value, which 95 // A function for creating a new WebUI. The caller owns the return value, which
95 // may be NULL (for example, if the URL refers to an non-existent extension). 96 // may be NULL (for example, if the URL refers to an non-existent extension).
96 typedef WebUIController* (*WebUIFactoryFunction)(content::WebUI* web_ui, 97 typedef WebUIController* (*WebUIFactoryFunction)(content::WebUI* web_ui,
97 const GURL& url); 98 const GURL& url);
98 99
99 // Template for defining WebUIFactoryFunction. 100 // Template for defining WebUIFactoryFunction.
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 return OptionsUI::GetFaviconResourceBytes(); 489 return OptionsUI::GetFaviconResourceBytes();
489 490
490 if (page_url.host() == chrome::kChromeUISettingsFrameHost) 491 if (page_url.host() == chrome::kChromeUISettingsFrameHost)
491 return options2::OptionsUI::GetFaviconResourceBytes(); 492 return options2::OptionsUI::GetFaviconResourceBytes();
492 493
493 if (page_url.host() == chrome::kChromeUIPluginsHost) 494 if (page_url.host() == chrome::kChromeUIPluginsHost)
494 return PluginsUI::GetFaviconResourceBytes(); 495 return PluginsUI::GetFaviconResourceBytes();
495 496
496 return NULL; 497 return NULL;
497 } 498 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chrome_web_ui_factory.h ('k') | chrome/browser/ui/webui/test_chrome_web_ui_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698