| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_DOM_UI_DOM_UI_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_DOM_UI_DOM_UI_FACTORY_H_ |
| 6 #define CHROME_BROWSER_DOM_UI_DOM_UI_FACTORY_H_ | 6 #define CHROME_BROWSER_DOM_UI_DOM_UI_FACTORY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | |
| 10 | |
| 11 #include "chrome/browser/favicon_service.h" | 9 #include "chrome/browser/favicon_service.h" |
| 12 | 10 |
| 13 class DOMUI; | 11 class DOMUI; |
| 14 class GURL; | 12 class GURL; |
| 15 class Profile; | 13 class Profile; |
| 16 class RefCountedMemory; | 14 class RefCountedMemory; |
| 17 class TabContents; | 15 class TabContents; |
| 18 | 16 |
| 19 // An opaque identifier used to identify a DOMUI. This can only be compared to | 17 // An opaque identifier used to identify a DOMUI. This can only be compared to |
| 20 // kNoDOMUI or other DOMUI types. See GetDOMUIType. | 18 // kNoDOMUI or other DOMUI types. See GetDOMUIType. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 // Class is for scoping only. | 53 // Class is for scoping only. |
| 56 DOMUIFactory() {} | 54 DOMUIFactory() {} |
| 57 | 55 |
| 58 // Gets the data for the favicon for a DOMUI page. Returns NULL if the DOMUI | 56 // Gets the data for the favicon for a DOMUI page. Returns NULL if the DOMUI |
| 59 // does not have a favicon. | 57 // does not have a favicon. |
| 60 static RefCountedMemory* GetFaviconResourceBytes(Profile* profile, | 58 static RefCountedMemory* GetFaviconResourceBytes(Profile* profile, |
| 61 const GURL& page_url); | 59 const GURL& page_url); |
| 62 }; | 60 }; |
| 63 | 61 |
| 64 #endif // CHROME_BROWSER_DOM_UI_DOM_UI_FACTORY_H_ | 62 #endif // CHROME_BROWSER_DOM_UI_DOM_UI_FACTORY_H_ |
| OLD | NEW |