| OLD | NEW |
| 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 "ipc/ipc_message.h" | 8 #include "ipc/ipc_message.h" |
| 9 #include "ipc/ipc_message_macros.h" | 9 #include "ipc/ipc_message_macros.h" |
| 10 #include "ipc/ipc_param_traits.h" | 10 #include "ipc/ipc_param_traits.h" |
| 11 #include "third_party/skia/include/core/SkBitmap.h" | 11 #include "third_party/skia/include/core/SkBitmap.h" |
| 12 | 12 |
| 13 #define IPC_MESSAGE_START ImageMsgStart | 13 #define IPC_MESSAGE_START ImageMsgStart |
| 14 | 14 |
| 15 // Messages sent from the browser to the renderer. | 15 // Messages sent from the browser to the renderer. |
| 16 | 16 |
| 17 // Requests the renderer to download the specified image, decode it, | 17 // Requests the renderer to download the specified image, decode it, |
| 18 // and send the image data back via ImageHostMsg_DidDownloadImage. | 18 // and send the image data back via ImageHostMsg_DidDownloadImage. |
| 19 IPC_MESSAGE_ROUTED4(ImageMsg_DownloadImage, | 19 IPC_MESSAGE_ROUTED4(ImageMsg_DownloadImage, |
| 20 int /* identifier for the request */, | 20 int /* identifier for the request */, |
| 21 GURL /* URL of the image */, | 21 GURL /* URL of the image */, |
| 22 bool /* is favicon (turn off cookies) */, | 22 bool /* is favicon (turn off cookies) */, |
| 23 int /* Preferred image size. Passed on to | 23 int /* Preferred image size. Passed on to |
| 24 ImageHostMsg_DidDownloadFavicon, unused otherwise */) | 24 ImageHostMsg_DidDownloadFavicon, unused otherwise */) |
| 25 | 25 |
| 26 // Messages sent from the renderer to the browser. | 26 // Messages sent from the renderer to the browser. |
| 27 | 27 |
| 28 IPC_MESSAGE_ROUTED4(ImageHostMsg_DidDownloadImage, | 28 IPC_MESSAGE_ROUTED5(ImageHostMsg_DidDownloadImage, |
| 29 int /* Identifier of the request */, | 29 int /* Identifier of the request */, |
| 30 int /* HTTP response status */, |
| 30 GURL /* URL of the image */, | 31 GURL /* URL of the image */, |
| 31 int /* Preferred image size passed to | 32 int /* Preferred image size passed to |
| 32 ImageMsg_DownloadImage */, | 33 ImageMsg_DownloadImage */, |
| 33 std::vector<SkBitmap> /* image_data */) | 34 std::vector<SkBitmap> /* image_data */) |
| OLD | NEW |