OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // Multiply-included message file, no traditional include guard. |
| 6 #include <vector> |
| 7 |
| 8 #include "ipc/ipc_message.h" |
| 9 #include "ipc/ipc_message_macros.h" |
| 10 #include "ipc/ipc_param_traits.h" |
| 11 #include "third_party/skia/include/core/SkBitmap.h" |
| 12 |
| 13 #define IPC_MESSAGE_START ImageMsgStart |
| 14 |
| 15 // Messages sent from the browser to the renderer. |
| 16 |
| 17 // Requests the renderer to download the specified image, decode it, |
| 18 // and send the image data back via ImageHostMsg_DidDownloadImage. |
| 19 IPC_MESSAGE_ROUTED3(ImageMsg_DownloadImage, |
| 20 int /* identifier for the request */, |
| 21 GURL /* URL of the image */, |
| 22 int /* Preferred image size. Passed on to |
| 23 ImageHostMsg_DidDownloadFavicon, unused otherwise */) |
| 24 |
| 25 // Messages sent from the renderer to the browser. |
| 26 |
| 27 IPC_MESSAGE_ROUTED4(ImageHostMsg_DidDownloadImage, |
| 28 int /* Identifier of the request */, |
| 29 GURL /* URL of the image */, |
| 30 int /* Preferred image size passed to |
| 31 ImageMsg_DownloadImage */, |
| 32 std::vector<SkBitmap> /* image_data */) |
| 33 |
OLD | NEW |