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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 // Multiply-included message file, no traditional include guard. 5 // Multiply-included message file, no traditional include guard.
6 #include <vector> 6 #include <vector>
7 7
8 #include "content/public/common/content_constants.h"
8 #include "content/public/common/favicon_url.h" 9 #include "content/public/common/favicon_url.h"
9 #include "ipc/ipc_message.h" 10 #include "ipc/ipc_message.h"
10 #include "ipc/ipc_message_macros.h" 11 #include "ipc/ipc_message_macros.h"
11 #include "ipc/ipc_param_traits.h" 12 #include "ipc/ipc_param_traits.h"
12 #include "third_party/skia/include/core/SkBitmap.h" 13 #include "third_party/skia/include/core/SkBitmap.h"
13 14
14 #define IPC_MESSAGE_START IconMsgStart 15 #define IPC_MESSAGE_START IconMsgStart
15 16
16 IPC_ENUM_TRAITS(content::FaviconURL::IconType) 17 IPC_ENUM_TRAITS(content::FaviconURL::IconType)
18 IPC_ENUM_TRAITS(content::DownloadImageType)
17 19
18 IPC_STRUCT_TRAITS_BEGIN(content::FaviconURL) 20 IPC_STRUCT_TRAITS_BEGIN(content::FaviconURL)
19 IPC_STRUCT_TRAITS_MEMBER(icon_url) 21 IPC_STRUCT_TRAITS_MEMBER(icon_url)
20 IPC_STRUCT_TRAITS_MEMBER(icon_type) 22 IPC_STRUCT_TRAITS_MEMBER(icon_type)
21 IPC_STRUCT_TRAITS_END() 23 IPC_STRUCT_TRAITS_END()
22 24
23 // Messages sent from the browser to the renderer. 25 // Messages sent from the browser to the renderer.
24 26
25 // Requests the renderer to download the specified favicon image, decode it, 27 // Requests the renderer to download the specified favicon image, decode it,
26 // and send the image data back via IconHostMsg_DidDownloadFavicon. 28 // and send the image data back via IconHostMsg_DidDownloadFavicon.
27 IPC_MESSAGE_ROUTED3(IconMsg_DownloadFavicon, 29 IPC_MESSAGE_ROUTED4(IconMsg_DownloadFavicon,
28 int /* identifier for the request */, 30 int /* identifier for the request */,
29 GURL /* URL of the image */, 31 GURL /* URL of the image */,
32 content::DownloadImageType /* type of image */,
30 int /* Preferred favicon size. Passed on to 33 int /* Preferred favicon size. Passed on to
31 IconHostMsg_DidDownloadFavicon, unused otherwise */) 34 IconHostMsg_DidDownloadFavicon, unused otherwise */)
32 35
33 // Messages sent from the renderer to the browser. 36 // Messages sent from the renderer to the browser.
34 37
35 // Notification that the urls for the favicon of a site has been determined. 38 // Notification that the urls for the favicon of a site has been determined.
36 IPC_MESSAGE_ROUTED2(IconHostMsg_UpdateFaviconURL, 39 IPC_MESSAGE_ROUTED2(IconHostMsg_UpdateFaviconURL,
37 int32 /* page_id */, 40 int32 /* page_id */,
38 std::vector<content::FaviconURL> /* urls of the favicon */) 41 std::vector<content::FaviconURL> /* urls of the favicon */)
39 42
40 IPC_MESSAGE_ROUTED4(IconHostMsg_DidDownloadFavicon, 43 IPC_MESSAGE_ROUTED4(IconHostMsg_DidDownloadFavicon,
41 int /* Identifier of the request */, 44 int /* Identifier of the request */,
42 GURL /* URL of the image */, 45 GURL /* URL of the image */,
43 int /* Preferred icon size passed to 46 int /* Preferred icon size passed to
44 IconMsg_DownloadFavicon */, 47 IconMsg_DownloadFavicon */,
45 std::vector<SkBitmap> /* image_data */) 48 std::vector<SkBitmap> /* image_data */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698