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

Unified Diff: chrome/browser/favicon/favicon_util.h

Issue 10765021: Make the id used in IconMsg_DownloadFavicon unique (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
« no previous file with comments | « chrome/browser/favicon/favicon_tab_helper.cc ('k') | chrome/browser/favicon/favicon_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/favicon/favicon_util.h
diff --git a/chrome/browser/favicon/favicon_util.h b/chrome/browser/favicon/favicon_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..c7725a0b4d2c5b1773e769e58aa0be53ed91db37
--- /dev/null
+++ b/chrome/browser/favicon/favicon_util.h
@@ -0,0 +1,27 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_FAVICON_FAVICON_UTIL_H_
+#define CHROME_BROWSER_FAVICON_FAVICON_UTIL_H_
+
+class GURL;
+
+namespace content {
+class RenderViewHost;
+}
+
+// Utility class for common favicon related code.
+class FaviconUtil {
+ public:
+ // Starts the download of the given favicon |url| from the given render view
+ // host. When the download is finished, an IconHostMsg_DidDownloadFavicon IPC
+ // message will be sent.
+ // Returns the unique id of the download request. The id will be sent in the
+ // IPC message.
+ static int DownloadFavicon(content::RenderViewHost* rvh,
+ GURL url,
+ int image_size);
+};
+
+#endif // CHROME_BROWSER_FAVICON_FAVICON_UTIL_H_
« no previous file with comments | « chrome/browser/favicon/favicon_tab_helper.cc ('k') | chrome/browser/favicon/favicon_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698