| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 class DOMUI; | 10 class DOMUI; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 // the returned pointer is passed to the caller. | 40 // the returned pointer is passed to the caller. |
| 41 static DOMUI* CreateDOMUIForURL(TabContents* tab_contents, const GURL& url); | 41 static DOMUI* CreateDOMUIForURL(TabContents* tab_contents, const GURL& url); |
| 42 | 42 |
| 43 // Gets the data for the favicon for a DOMUI page. Returns false if the DOMUI | 43 // Gets the data for the favicon for a DOMUI page. Returns false if the DOMUI |
| 44 // does not have a favicon. | 44 // does not have a favicon. |
| 45 static bool GetFaviconResourceBytes(const GURL& page_url, | 45 static bool GetFaviconResourceBytes(const GURL& page_url, |
| 46 std::vector<unsigned char>* bytes); | 46 std::vector<unsigned char>* bytes); |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 // Class is for scoping only. | 49 // Class is for scoping only. |
| 50 DOMUIFactory() {}; | 50 DOMUIFactory() {} |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 #endif // CHROME_BROWSER_DOM_UI_DOM_UI_FACTORY_H_ | 53 #endif // CHROME_BROWSER_DOM_UI_DOM_UI_FACTORY_H_ |
| OLD | NEW |