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

Side by Side Diff: chrome/common/icon_messages.h

Issue 10828127: Use hi-resolution favicon variants if available. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: grrrrr 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/common/favicon_url.h" 8 #include "chrome/common/favicon_url.h"
9 #include "ipc/ipc_message.h" 9 #include "ipc/ipc_message.h"
10 #include "ipc/ipc_message_macros.h" 10 #include "ipc/ipc_message_macros.h"
11 #include "ipc/ipc_param_traits.h" 11 #include "ipc/ipc_param_traits.h"
12 #include "third_party/skia/include/core/SkBitmap.h" 12 #include "third_party/skia/include/core/SkBitmap.h"
13 13
14 #define IPC_MESSAGE_START IconMsgStart 14 #define IPC_MESSAGE_START IconMsgStart
15 15
16 IPC_ENUM_TRAITS(FaviconURL::IconType) 16 IPC_ENUM_TRAITS(FaviconURL::IconType)
17 17
18 IPC_STRUCT_TRAITS_BEGIN(FaviconURL) 18 IPC_STRUCT_TRAITS_BEGIN(FaviconURL)
19 IPC_STRUCT_TRAITS_MEMBER(icon_url) 19 IPC_STRUCT_TRAITS_MEMBER(icon_url)
20 IPC_STRUCT_TRAITS_MEMBER(icon_type) 20 IPC_STRUCT_TRAITS_MEMBER(icon_type)
21 IPC_STRUCT_TRAITS_END() 21 IPC_STRUCT_TRAITS_END()
22 22
23 // Messages sent from the browser to the renderer. 23 // Messages sent from the browser to the renderer.
24 24
25 // Requests the renderer to download the specified favicon image encode it as 25 // Requests the renderer to download the specified favicon image, decode it,
26 // PNG and send the PNG data back ala IconHostMsg_DidDownloadFavicon. 26 // and send the image data back via IconHostMsg_DidDownloadFavicon.
27 IPC_MESSAGE_ROUTED3(IconMsg_DownloadFavicon, 27 IPC_MESSAGE_ROUTED3(IconMsg_DownloadFavicon,
28 int /* identifier for the request */, 28 int /* identifier for the request */,
29 GURL /* URL of the image */, 29 GURL /* URL of the image */,
30 int /* Size of the image. Normally 0, but set if you have 30 int /* Preferred favicon size. Passed on to
31 a preferred image size to request, such as when 31 IconHostMsg_DidDownloadFavicon, unused otherwise */)
32 downloading the favicon */)
33 32
34 // Messages sent from the renderer to the browser. 33 // Messages sent from the renderer to the browser.
35 34
36 // Notification that the urls for the favicon of a site has been determined. 35 // Notification that the urls for the favicon of a site has been determined.
37 IPC_MESSAGE_ROUTED2(IconHostMsg_UpdateFaviconURL, 36 IPC_MESSAGE_ROUTED2(IconHostMsg_UpdateFaviconURL,
38 int32 /* page_id */, 37 int32 /* page_id */,
39 std::vector<FaviconURL> /* urls of the favicon */) 38 std::vector<FaviconURL> /* urls of the favicon */)
40 39
41 IPC_MESSAGE_ROUTED4(IconHostMsg_DidDownloadFavicon, 40 IPC_MESSAGE_ROUTED5(IconHostMsg_DidDownloadFavicon,
42 int /* Identifier of the request */, 41 int /* Identifier of the request */,
43 GURL /* URL of the image */, 42 GURL /* URL of the image */,
44 bool /* true if there was a network error */, 43 bool /* true if there was a network error */,
45 SkBitmap /* image_data */) 44 int /* Preferred icon size passed to
45 IconMsg_DownloadFavicon */,
46 std::vector<SkBitmap> /* image_data */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698