Chromium Code Reviews| 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 file, no traditional include guard. | 5 // Multiply-included file, no traditional include guard. |
| 6 #include "ipc/ipc_channel_handle.h" | 6 #include "ipc/ipc_channel_handle.h" |
| 7 #include "ipc/ipc_message_macros.h" | 7 #include "ipc/ipc_message_macros.h" |
| 8 #include "ipc/ipc_platform_file.h" | 8 #include "ipc/ipc_platform_file.h" |
| 9 | 9 |
| 10 // Singly-included section for enums and custom IPC traits. | 10 // Singly-included section for enums and custom IPC traits. |
| 11 #ifndef ANDROID_WEBVIEW_COMMON_RENDER_VIEW_MESSAGES_H_ | 11 #ifndef ANDROID_WEBVIEW_COMMON_RENDER_VIEW_MESSAGES_H_ |
| 12 #define ANDROID_WEBVIEW_COMMON_RENDER_VIEW_MESSAGES_H_ | 12 #define ANDROID_WEBVIEW_COMMON_RENDER_VIEW_MESSAGES_H_ |
| 13 | 13 |
| 14 | 14 |
| 15 namespace IPC { | 15 namespace IPC { |
| 16 | 16 |
| 17 // TODO - add enums and custom IPC traits here when needed. | 17 // TODO - add enums and custom IPC traits here when needed. |
| 18 | 18 |
| 19 } // namespace IPC | 19 } // namespace IPC |
| 20 | 20 |
| 21 #endif // ANDROID_WEBVIEW_COMMON_RENDER_VIEW_MESSAGES_H_ | 21 #endif // ANDROID_WEBVIEW_COMMON_RENDER_VIEW_MESSAGES_H_ |
| 22 | 22 |
| 23 #define IPC_MESSAGE_START AndroidWebViewMsgStart | 23 #define IPC_MESSAGE_START AndroidWebViewMsgStart |
| 24 | 24 |
| 25 //----------------------------------------------------------------------------- | 25 //----------------------------------------------------------------------------- |
| 26 // RenderView messages | 26 // RenderView messages |
| 27 // These are messages sent from the browser to the renderer process. | 27 // These are messages sent from the browser to the renderer process. |
| 28 | 28 |
| 29 // Tells the renderer to drop all WebCore memory cache. | |
| 30 IPC_MESSAGE_CONTROL0(AwViewMsg_ClearCache); | |
| 31 | |
| 29 // Request for the renderer to determine if the document contains any image | 32 // Request for the renderer to determine if the document contains any image |
| 30 // elements. The id should be passed in the response message so the response | 33 // elements. The id should be passed in the response message so the response |
| 31 // can be associated with the request. | 34 // can be associated with the request. |
| 32 IPC_MESSAGE_ROUTED1(AwViewMsg_DocumentHasImages, | 35 IPC_MESSAGE_ROUTED1(AwViewMsg_DocumentHasImages, |
| 33 int /* id */) | 36 int /* id */) |
| 34 | 37 |
| 35 //----------------------------------------------------------------------------- | |
| 36 // RenderView messages | |
| 37 // These are messages sent from the renderer to the browser process. | |
|
joth
2012/10/02 21:36:38
why u remove me?
boliu
2012/10/02 22:06:59
Doh! misread, thought the comment was the same as
| |
| 38 | |
| 39 // Response to AwViewMsg_DocumentHasImages request. | 38 // Response to AwViewMsg_DocumentHasImages request. |
| 40 IPC_MESSAGE_ROUTED2(AwViewHostMsg_DocumentHasImagesResponse, | 39 IPC_MESSAGE_ROUTED2(AwViewHostMsg_DocumentHasImagesResponse, |
| 41 int, /* id */ | 40 int, /* id */ |
| 42 bool /* has_images */) | 41 bool /* has_images */) |
| 43 | |
| OLD | NEW |