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

Unified Diff: chrome/browser/search_engines/template_url_prepopulate_data.h

Issue 10828401: Add a getter for search provider logos. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and switch to a simple getter. Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/search_engines/template_url_prepopulate_data.h
diff --git a/chrome/browser/search_engines/template_url_prepopulate_data.h b/chrome/browser/search_engines/template_url_prepopulate_data.h
index 4d676fb6fe841c313695f930bd56e1f9baf00ef7..e506bfc884b5f8e89d76a1da755b65c3dee449eb 100644
--- a/chrome/browser/search_engines/template_url_prepopulate_data.h
+++ b/chrome/browser/search_engines/template_url_prepopulate_data.h
@@ -57,6 +57,13 @@ TemplateURL* GetPrepopulatedDefaultSearch(Profile* profile);
// NOTE: Must be called on the UI thread.
SearchEngineType GetEngineType(const std::string& url);
+// Returns the logo (at the specified resolution) for |url|. If no logo is
+// known, this may return an empty GURL.
+//
+// NOTE: Must be called on the UI thread.
+GURL GetLogoURL(const std::string& url);
msw 2012/08/27 21:57:26 Make these args const TemplateURL& (or pointers) i
Peter Kasting 2012/08/28 00:04:07 Nit: I suggest one function that takes a second ar
samarth 2012/08/28 16:18:15 Done.
samarth 2012/08/28 16:18:15 Done.
+GURL GetLogo200PercentURL(const std::string& url);
+
} // namespace TemplateURLPrepopulateData
#endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_

Powered by Google App Engine
This is Rietveld 408576698