| OLD | NEW |
| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 protected: | 46 protected: |
| 47 ChromeWebUIControllerFactory(); | 47 ChromeWebUIControllerFactory(); |
| 48 virtual ~ChromeWebUIControllerFactory(); | 48 virtual ~ChromeWebUIControllerFactory(); |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 | 51 |
| 52 friend struct DefaultSingletonTraits<ChromeWebUIControllerFactory>; | 52 friend struct DefaultSingletonTraits<ChromeWebUIControllerFactory>; |
| 53 | 53 |
| 54 // Gets the data for the favicon for a WebUI page. Returns NULL if the WebUI | 54 // Gets the data for the favicon for a WebUI page. Returns NULL if the WebUI |
| 55 // does not have a favicon. | 55 // does not have a favicon. |
| 56 // The returned favicon data must be |
| 57 // |gfx::kFaviconSize| x |gfx::kFaviconSize| DIP. GetFaviconForURL() should |
| 58 // be updated if this changes. |
| 56 base::RefCountedMemory* GetFaviconResourceBytes( | 59 base::RefCountedMemory* GetFaviconResourceBytes( |
| 57 const GURL& page_url, ui::ScaleFactor scale_factor) const; | 60 const GURL& page_url, ui::ScaleFactor scale_factor) const; |
| 58 | 61 |
| 59 DISALLOW_COPY_AND_ASSIGN(ChromeWebUIControllerFactory); | 62 DISALLOW_COPY_AND_ASSIGN(ChromeWebUIControllerFactory); |
| 60 }; | 63 }; |
| 61 | 64 |
| 62 #endif // CHROME_BROWSER_UI_WEBUI_CHROME_WEB_UI_CONTROLLER_FACTORY_H_ | 65 #endif // CHROME_BROWSER_UI_WEBUI_CHROME_WEB_UI_CONTROLLER_FACTORY_H_ |
| OLD | NEW |