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/platform_file.h" | 16 #include "base/platform_file.h" |
17 #include "base/gfx/rect.h" | 17 #include "base/gfx/rect.h" |
18 #include "base/gfx/native_widget_types.h" | 18 #include "base/gfx/native_widget_types.h" |
19 #include "base/shared_memory.h" | 19 #include "base/shared_memory.h" |
20 #include "base/values.h" | 20 #include "base/values.h" |
21 #include "chrome/common/css_colors.h" | 21 #include "chrome/common/css_colors.h" |
22 #include "chrome/common/transport_dib.h" | 22 #include "chrome/common/transport_dib.h" |
| 23 #include "chrome/common/view_types.h" |
23 #include "ipc/ipc_channel_handle.h" | 24 #include "ipc/ipc_channel_handle.h" |
24 #include "ipc/ipc_message_macros.h" | 25 #include "ipc/ipc_message_macros.h" |
25 #include "third_party/skia/include/core/SkBitmap.h" | 26 #include "third_party/skia/include/core/SkBitmap.h" |
26 #include "webkit/glue/dom_operations.h" | 27 #include "webkit/glue/dom_operations.h" |
27 #include "webkit/glue/webappcachecontext.h" | 28 #include "webkit/glue/webappcachecontext.h" |
28 #include "webkit/glue/webcursor.h" | 29 #include "webkit/glue/webcursor.h" |
29 #include "webkit/glue/webplugin.h" | 30 #include "webkit/glue/webplugin.h" |
30 | 31 |
31 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes | 32 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes |
32 // more sense with our current design. | 33 // more sense with our current design. |
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 | 640 |
640 // Response message to ViewHostMsg_CreateDedicatedWorker. Sent when the | 641 // Response message to ViewHostMsg_CreateDedicatedWorker. Sent when the |
641 // worker has started. | 642 // worker has started. |
642 IPC_MESSAGE_ROUTED0(ViewMsg_DedicatedWorkerCreated) | 643 IPC_MESSAGE_ROUTED0(ViewMsg_DedicatedWorkerCreated) |
643 | 644 |
644 // Tell the utility process to parse the given JSON data and verify its | 645 // Tell the utility process to parse the given JSON data and verify its |
645 // validity. | 646 // validity. |
646 IPC_MESSAGE_CONTROL1(UtilityMsg_UnpackWebResource, | 647 IPC_MESSAGE_CONTROL1(UtilityMsg_UnpackWebResource, |
647 std::string /* JSON data */) | 648 std::string /* JSON data */) |
648 | 649 |
| 650 // Tell the renderer which browser window it's being attached to. |
| 651 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateBrowserWindowId, |
| 652 int /* id of browser window */) |
| 653 |
| 654 // Tell the renderer which type this view is. |
| 655 IPC_MESSAGE_ROUTED1(ViewMsg_NotifyRenderViewType, |
| 656 ViewType::Type /* view_type */) |
| 657 |
649 // Returns a file handle | 658 // Returns a file handle |
650 IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseOpenFileResponse, | 659 IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseOpenFileResponse, |
651 int32 /* the ID of the message we're replying to */, | 660 int32 /* the ID of the message we're replying to */, |
652 base::PlatformFile /* the HANDLE/fd of the DB file */) | 661 base::PlatformFile /* the HANDLE/fd of the DB file */) |
653 | 662 |
654 // Returns the error code returned by a call to DeleteFile() | 663 // Returns the error code returned by a call to DeleteFile() |
655 IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseDeleteFileResponse, | 664 IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseDeleteFileResponse, |
656 int32 /* the ID of the message we're replying to */, | 665 int32 /* the ID of the message we're replying to */, |
657 bool /* whether or not the DB file was deleted */) | 666 bool /* whether or not the DB file was deleted */) |
658 | 667 |
(...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1653 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileAttributes, | 1662 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileAttributes, |
1654 FilePath /* the name of the file */, | 1663 FilePath /* the name of the file */, |
1655 int32 /* a unique message ID */) | 1664 int32 /* a unique message ID */) |
1656 | 1665 |
1657 // Asks the browser process to return the size of a DB file | 1666 // Asks the browser process to return the size of a DB file |
1658 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileSize, | 1667 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileSize, |
1659 FilePath /* the name of the file */, | 1668 FilePath /* the name of the file */, |
1660 int32 /* a unique message ID */) | 1669 int32 /* a unique message ID */) |
1661 | 1670 |
1662 IPC_END_MESSAGES(ViewHost) | 1671 IPC_END_MESSAGES(ViewHost) |
OLD | NEW |