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

Unified Diff: content/common/icon_messages.h

Issue 12945007: Fix Notifications Icon loading. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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: content/common/icon_messages.h
diff --git a/content/common/icon_messages.h b/content/common/icon_messages.h
index 9c466431991bce69c4531c90a21c586db11aa23e..d82850133a28879fffd4ad670f12e2d038e2b17a 100644
--- a/content/common/icon_messages.h
+++ b/content/common/icon_messages.h
@@ -5,6 +5,7 @@
// Multiply-included message file, no traditional include guard.
#include <vector>
+#include "content/public/common/content_constants.h"
#include "content/public/common/favicon_url.h"
#include "ipc/ipc_message.h"
#include "ipc/ipc_message_macros.h"
@@ -14,6 +15,7 @@
#define IPC_MESSAGE_START IconMsgStart
IPC_ENUM_TRAITS(content::FaviconURL::IconType)
+IPC_ENUM_TRAITS(content::DownloadImageType)
IPC_STRUCT_TRAITS_BEGIN(content::FaviconURL)
IPC_STRUCT_TRAITS_MEMBER(icon_url)
@@ -24,9 +26,10 @@ IPC_STRUCT_TRAITS_END()
// Requests the renderer to download the specified favicon image, decode it,
// and send the image data back via IconHostMsg_DidDownloadFavicon.
-IPC_MESSAGE_ROUTED3(IconMsg_DownloadFavicon,
+IPC_MESSAGE_ROUTED4(IconMsg_DownloadFavicon,
int /* identifier for the request */,
GURL /* URL of the image */,
+ content::DownloadImageType /* type of image */,
int /* Preferred favicon size. Passed on to
IconHostMsg_DidDownloadFavicon, unused otherwise */)

Powered by Google App Engine
This is Rietveld 408576698