| 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_FAVICON_FAVICON_HELPER_H_ | 5 #ifndef CHROME_BROWSER_FAVICON_FAVICON_UTILS_H_ |
| 6 #define CHROME_BROWSER_FAVICON_FAVICON_HELPER_H_ | 6 #define CHROME_BROWSER_FAVICON_FAVICON_UTILS_H_ |
| 7 | 7 |
| 8 #include "components/favicon/content/content_favicon_driver.h" | 8 #include "components/favicon/content/content_favicon_driver.h" |
| 9 | 9 |
| 10 namespace favicon { | 10 namespace favicon { |
| 11 | 11 |
| 12 // Creates a ContentFaviconDriver and associates it with |web_contents| if none | 12 // Creates a ContentFaviconDriver and associates it with |web_contents| if none |
| 13 // exists yet. | 13 // exists yet. |
| 14 // | 14 // |
| 15 // This is a helper method for ContentFaviconDriver::CreateForWebContents() that | 15 // This is a helper method for ContentFaviconDriver::CreateForWebContents() that |
| 16 // gets KeyedService factories from the Profile linked to web_contents. | 16 // gets KeyedService factories from the Profile linked to web_contents. |
| 17 void CreateContentFaviconDriverForWebContents( | 17 void CreateContentFaviconDriverForWebContents( |
| 18 content::WebContents* web_contents); | 18 content::WebContents* web_contents); |
| 19 | 19 |
| 20 // Returns whether the favicon should be displayed. If this returns false, no | 20 // Returns whether the favicon should be displayed. If this returns false, no |
| 21 // space is provided for the favicon, and the favicon is never displayed. | 21 // space is provided for the favicon, and the favicon is never displayed. |
| 22 bool ShouldDisplayFavicon(content::WebContents* web_contents); | 22 bool ShouldDisplayFavicon(content::WebContents* web_contents); |
| 23 | 23 |
| 24 } // namespace favicon | 24 } // namespace favicon |
| 25 | 25 |
| 26 #endif // CHROME_BROWSER_FAVICON_FAVICON_HELPER_H_ | 26 #endif // CHROME_BROWSER_FAVICON_FAVICON_UTILS_H_ |
| OLD | NEW |