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

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

Issue 12084029: Simplify how TestChromeWebUIControllerFactory is registered now that multiple WebUIControllerFactor… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync to head 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 #ifndef CHROME_BROWSER_UI_WEBUI_CHROME_WEB_UI_CONTROLLER_FACTORY_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROME_WEB_UI_CONTROLLER_FACTORY_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROME_WEB_UI_CONTROLLER_FACTORY_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROME_WEB_UI_CONTROLLER_FACTORY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "content/public/browser/web_ui.h" 10 #include "content/public/browser/web_ui.h"
(...skipping 27 matching lines...) Expand all
38 const std::vector<ui::ScaleFactor>& scale_factors, 38 const std::vector<ui::ScaleFactor>& scale_factors,
39 const FaviconService::FaviconResultsCallback& callback) const; 39 const FaviconService::FaviconResultsCallback& callback) const;
40 40
41 static ChromeWebUIControllerFactory* GetInstance(); 41 static ChromeWebUIControllerFactory* GetInstance();
42 42
43 protected: 43 protected:
44 ChromeWebUIControllerFactory(); 44 ChromeWebUIControllerFactory();
45 virtual ~ChromeWebUIControllerFactory(); 45 virtual ~ChromeWebUIControllerFactory();
46 46
47 private: 47 private:
48
49 friend struct DefaultSingletonTraits<ChromeWebUIControllerFactory>; 48 friend struct DefaultSingletonTraits<ChromeWebUIControllerFactory>;
50 49
51 // Gets the data for the favicon for a WebUI page. Returns NULL if the WebUI 50 // Gets the data for the favicon for a WebUI page. Returns NULL if the WebUI
52 // does not have a favicon. 51 // does not have a favicon.
53 // The returned favicon data must be 52 // The returned favicon data must be
54 // |gfx::kFaviconSize| x |gfx::kFaviconSize| DIP. GetFaviconForURL() should 53 // |gfx::kFaviconSize| x |gfx::kFaviconSize| DIP. GetFaviconForURL() should
55 // be updated if this changes. 54 // be updated if this changes.
56 base::RefCountedMemory* GetFaviconResourceBytes( 55 base::RefCountedMemory* GetFaviconResourceBytes(
57 const GURL& page_url, ui::ScaleFactor scale_factor) const; 56 const GURL& page_url, ui::ScaleFactor scale_factor) const;
58 57
59 DISALLOW_COPY_AND_ASSIGN(ChromeWebUIControllerFactory); 58 DISALLOW_COPY_AND_ASSIGN(ChromeWebUIControllerFactory);
60 }; 59 };
61 60
62 #endif // CHROME_BROWSER_UI_WEBUI_CHROME_WEB_UI_CONTROLLER_FACTORY_H_ 61 #endif // CHROME_BROWSER_UI_WEBUI_CHROME_WEB_UI_CONTROLLER_FACTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/bidi_checker_web_ui_test.h ('k') | chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698