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

Side by Side Diff: content/browser/webui/empty_web_ui_factory.cc

Issue 9224002: Make WebUI objects not derive from WebUI. WebUI objects own the controller. This is the ownership... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync to head to clear linux_chromeos browsertest failures 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/browser/webui/empty_web_ui_factory.h" 5 #include "content/browser/webui/empty_web_ui_factory.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 EmptyWebUIFactory::EmptyWebUIFactory() { 9 EmptyWebUIFactory::EmptyWebUIFactory() {
10 } 10 }
11 11
12 EmptyWebUIFactory::~EmptyWebUIFactory() { 12 EmptyWebUIFactory::~EmptyWebUIFactory() {
13 } 13 }
14 14
15 WebUI* EmptyWebUIFactory::CreateWebUIForURL(WebContents* source, 15 WebUIController* EmptyWebUIFactory::CreateWebUIForURL(WebUI* web_ui,
16 const GURL& url) const { 16 const GURL& url) const {
17 return NULL; 17 return NULL;
18 } 18 }
19 19
20 WebUI::TypeID EmptyWebUIFactory::GetWebUIType( 20 WebUI::TypeID EmptyWebUIFactory::GetWebUIType(
21 content::BrowserContext* browser_context, const GURL& url) const { 21 content::BrowserContext* browser_context, const GURL& url) const {
22 return WebUI::kNoWebUI; 22 return WebUI::kNoWebUI;
23 } 23 }
24 24
25 bool EmptyWebUIFactory::UseWebUIForURL( 25 bool EmptyWebUIFactory::UseWebUIForURL(
26 content::BrowserContext* browser_context, const GURL& url) const { 26 content::BrowserContext* browser_context, const GURL& url) const {
(...skipping 14 matching lines...) Expand all
41 const GURL& url) const { 41 const GURL& url) const {
42 return false; 42 return false;
43 } 43 }
44 44
45 // static 45 // static
46 EmptyWebUIFactory* EmptyWebUIFactory::GetInstance() { 46 EmptyWebUIFactory* EmptyWebUIFactory::GetInstance() {
47 return Singleton<EmptyWebUIFactory>::get(); 47 return Singleton<EmptyWebUIFactory>::get();
48 } 48 }
49 49
50 } // namespace content 50 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698