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

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

Issue 6992019: Allow overriding WebUIFactory when test flag is set. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nit from review. Created 9 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/chrome_web_ui_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_UI_WEBUI_CHROME_WEB_UI_FACTORY_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROME_WEB_UI_FACTORY_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROME_WEB_UI_FACTORY_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROME_WEB_UI_FACTORY_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
(...skipping 17 matching lines...) Expand all
28 const GURL& url) const; 28 const GURL& url) const;
29 29
30 // Get the favicon for |page_url| and forward the result to the |request| 30 // Get the favicon for |page_url| and forward the result to the |request|
31 // when loaded. 31 // when loaded.
32 void GetFaviconForURL(Profile* profile, 32 void GetFaviconForURL(Profile* profile,
33 FaviconService::GetFaviconRequest* request, 33 FaviconService::GetFaviconRequest* request,
34 const GURL& page_url) const; 34 const GURL& page_url) const;
35 35
36 static ChromeWebUIFactory* GetInstance(); 36 static ChromeWebUIFactory* GetInstance();
37 37
38 protected:
39 ChromeWebUIFactory();
40 virtual ~ChromeWebUIFactory();
41
38 private: 42 private:
39 virtual ~ChromeWebUIFactory();
40 43
41 friend struct DefaultSingletonTraits<ChromeWebUIFactory>; 44 friend struct DefaultSingletonTraits<ChromeWebUIFactory>;
42 45
43 // Gets the data for the favicon for a WebUI page. Returns NULL if the WebUI 46 // Gets the data for the favicon for a WebUI page. Returns NULL if the WebUI
44 // does not have a favicon. 47 // does not have a favicon.
45 RefCountedMemory* GetFaviconResourceBytes(const GURL& page_url) const; 48 RefCountedMemory* GetFaviconResourceBytes(const GURL& page_url) const;
46 49
47 DISALLOW_IMPLICIT_CONSTRUCTORS(ChromeWebUIFactory); 50 DISALLOW_COPY_AND_ASSIGN(ChromeWebUIFactory);
48 }; 51 };
49 52
50 #endif // CHROME_BROWSER_UI_WEBUI_CHROME_WEB_UI_FACTORY_H_ 53 #endif // CHROME_BROWSER_UI_WEBUI_CHROME_WEB_UI_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/chrome_web_ui_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698