OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 // This header is meant to be included in multiple passes, hence no traditional | 5 // This header is meant to be included in multiple passes, hence no traditional |
6 // header guard. | 6 // header guard. |
7 // See ipc_message_macros.h for explanation of the macros and passes. | 7 // See ipc_message_macros.h for explanation of the macros and passes. |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 | 13 |
14 #include "base/clipboard.h" | 14 #include "base/clipboard.h" |
15 #include "base/file_path.h" | 15 #include "base/file_path.h" |
16 #include "base/nullable_string16.h" | 16 #include "base/nullable_string16.h" |
17 #include "base/platform_file.h" | 17 #include "base/platform_file.h" |
18 #include "base/gfx/rect.h" | 18 #include "base/gfx/rect.h" |
19 #include "base/gfx/native_widget_types.h" | 19 #include "base/gfx/native_widget_types.h" |
20 #include "base/shared_memory.h" | 20 #include "base/shared_memory.h" |
21 #include "base/values.h" | 21 #include "base/values.h" |
22 #include "chrome/common/css_colors.h" | 22 #include "chrome/common/css_colors.h" |
23 #include "chrome/common/extensions/update_manifest.h" | 23 #include "chrome/common/extensions/update_manifest.h" |
| 24 #include "chrome/common/notification_type.h" |
24 #include "chrome/common/transport_dib.h" | 25 #include "chrome/common/transport_dib.h" |
25 #include "chrome/common/view_types.h" | 26 #include "chrome/common/view_types.h" |
26 #include "ipc/ipc_channel_handle.h" | 27 #include "ipc/ipc_channel_handle.h" |
27 #include "ipc/ipc_message_macros.h" | 28 #include "ipc/ipc_message_macros.h" |
28 #include "third_party/skia/include/core/SkBitmap.h" | 29 #include "third_party/skia/include/core/SkBitmap.h" |
29 #include "webkit/appcache/appcache_interfaces.h" | 30 #include "webkit/appcache/appcache_interfaces.h" |
30 #include "webkit/glue/dom_operations.h" | 31 #include "webkit/glue/dom_operations.h" |
31 #include "webkit/glue/webcursor.h" | 32 #include "webkit/glue/webcursor.h" |
32 #include "webkit/glue/webplugin.h" | 33 #include "webkit/glue/webplugin.h" |
33 | 34 |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 WebKit::WebFindOptions) | 241 WebKit::WebFindOptions) |
241 | 242 |
242 // Send from the browser to the rendered to get the text content of the page. | 243 // Send from the browser to the rendered to get the text content of the page. |
243 IPC_MESSAGE_ROUTED0(ViewMsg_DeterminePageText) | 244 IPC_MESSAGE_ROUTED0(ViewMsg_DeterminePageText) |
244 | 245 |
245 // Send from the renderer to the browser to return the text content of the | 246 // Send from the renderer to the browser to return the text content of the |
246 // page. | 247 // page. |
247 IPC_MESSAGE_ROUTED1(ViewMsg_DeterminePageText_Reply, | 248 IPC_MESSAGE_ROUTED1(ViewMsg_DeterminePageText_Reply, |
248 std::wstring /* the language */) | 249 std::wstring /* the language */) |
249 | 250 |
| 251 // Send from the renderer to the browser to return the script running result. |
| 252 IPC_MESSAGE_ROUTED2(ViewMsg_ExecuteCodeFinished, |
| 253 int, /* request id */ |
| 254 bool /* whether the script ran successfully */) |
| 255 |
250 // Sent when the headers are available for a resource request. | 256 // Sent when the headers are available for a resource request. |
251 IPC_MESSAGE_ROUTED2(ViewMsg_Resource_ReceivedResponse, | 257 IPC_MESSAGE_ROUTED2(ViewMsg_Resource_ReceivedResponse, |
252 int /* request_id */, | 258 int /* request_id */, |
253 ResourceResponseHead) | 259 ResourceResponseHead) |
254 | 260 |
255 // Sent as download progress is being made, size of the resource may be | 261 // Sent as download progress is being made, size of the resource may be |
256 // unknown, in that case |size| is -1. | 262 // unknown, in that case |size| is -1. |
257 IPC_MESSAGE_ROUTED3(ViewMsg_Resource_DownloadProgress, | 263 IPC_MESSAGE_ROUTED3(ViewMsg_Resource_DownloadProgress, |
258 int /* request_id */, | 264 int /* request_id */, |
259 int64 /* position */, | 265 int64 /* position */, |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
678 IPC_MESSAGE_ROUTED0(ViewMsg_DedicatedWorkerCreated) | 684 IPC_MESSAGE_ROUTED0(ViewMsg_DedicatedWorkerCreated) |
679 | 685 |
680 // Tell the renderer which browser window it's being attached to. | 686 // Tell the renderer which browser window it's being attached to. |
681 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateBrowserWindowId, | 687 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateBrowserWindowId, |
682 int /* id of browser window */) | 688 int /* id of browser window */) |
683 | 689 |
684 // Tell the renderer which type this view is. | 690 // Tell the renderer which type this view is. |
685 IPC_MESSAGE_ROUTED1(ViewMsg_NotifyRenderViewType, | 691 IPC_MESSAGE_ROUTED1(ViewMsg_NotifyRenderViewType, |
686 ViewType::Type /* view_type */) | 692 ViewType::Type /* view_type */) |
687 | 693 |
| 694 // Notification that renderer should run some JavaScript code. |
| 695 IPC_MESSAGE_ROUTED4(ViewMsg_ExecuteCode, |
| 696 int, /* request id */ |
| 697 std::string, /* id of extension which runs the scripts */ |
| 698 bool, /* It's true if the code is JavaScript; Otherwise |
| 699 the code is CSS text. */ |
| 700 std::string /* code would be executed */) |
| 701 |
688 // Returns a file handle | 702 // Returns a file handle |
689 IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseOpenFileResponse, | 703 IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseOpenFileResponse, |
690 int32 /* the ID of the message we're replying to */, | 704 int32 /* the ID of the message we're replying to */, |
691 ViewMsg_DatabaseOpenFileResponse_Params) | 705 ViewMsg_DatabaseOpenFileResponse_Params) |
692 | 706 |
693 // Returns a SQLite error code | 707 // Returns a SQLite error code |
694 IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseDeleteFileResponse, | 708 IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseDeleteFileResponse, |
695 int32 /* the ID of the message we're replying to */, | 709 int32 /* the ID of the message we're replying to */, |
696 int /* SQLite error code */) | 710 int /* SQLite error code */) |
697 | 711 |
(...skipping 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1735 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileAttributes, | 1749 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileAttributes, |
1736 FilePath /* the name of the file */, | 1750 FilePath /* the name of the file */, |
1737 int32 /* a unique message ID */) | 1751 int32 /* a unique message ID */) |
1738 | 1752 |
1739 // Asks the browser process to return the size of a DB file | 1753 // Asks the browser process to return the size of a DB file |
1740 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileSize, | 1754 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileSize, |
1741 FilePath /* the name of the file */, | 1755 FilePath /* the name of the file */, |
1742 int32 /* a unique message ID */) | 1756 int32 /* a unique message ID */) |
1743 | 1757 |
1744 IPC_END_MESSAGES(ViewHost) | 1758 IPC_END_MESSAGES(ViewHost) |
OLD | NEW |