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 header, no traditional include guard. | 5 // Multiply-included message header, no traditional include guard. |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/process.h" | 10 #include "base/process.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #undef IPC_MESSAGE_EXPORT | 21 #undef IPC_MESSAGE_EXPORT |
22 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 22 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
23 | 23 |
24 #define IPC_MESSAGE_START BrowserPluginMsgStart | 24 #define IPC_MESSAGE_START BrowserPluginMsgStart |
25 | 25 |
26 // Browser plugin messages | 26 // Browser plugin messages |
27 | 27 |
28 // ----------------------------------------------------------------------------- | 28 // ----------------------------------------------------------------------------- |
29 // These messages are from the embedder to the browser process. | 29 // These messages are from the embedder to the browser process. |
30 | 30 |
| 31 // This message is sent to the browser process to create the browser plugin |
| 32 // embedder and helper. It is sent once prior to sending the first |
| 33 // BrowserPluginHostMsg_NavigateGuest message. |
| 34 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_CreateGuest, |
| 35 int /* instance_id */, |
| 36 std::string /* storage_partition_id */, |
| 37 bool /* persist_storage */) |
| 38 |
31 // Tells the guest to navigate to an entry |relative_index| away from the | 39 // Tells the guest to navigate to an entry |relative_index| away from the |
32 // current navigation entry. | 40 // current navigation entry. |
33 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_Go, | 41 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_Go, |
34 int /* instance_id */, | 42 int /* instance_id */, |
35 int /* relative_index */) | 43 int /* relative_index */) |
36 | 44 |
37 // Tells the guest to focus or defocus itself. | 45 // Tells the guest to focus or defocus itself. |
38 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetFocus, | 46 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetFocus, |
39 int /* instance_id */, | 47 int /* instance_id */, |
40 bool /* enable */) | 48 bool /* enable */) |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, | 183 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, |
176 int /* instance_id */, | 184 int /* instance_id */, |
177 bool /* accept */) | 185 bool /* accept */) |
178 | 186 |
179 // The guest has damage it wants to convey to the embedder so that it can | 187 // The guest has damage it wants to convey to the embedder so that it can |
180 // update its backing store. | 188 // update its backing store. |
181 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, | 189 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, |
182 int /* instance_id */, | 190 int /* instance_id */, |
183 int /* message_id */, | 191 int /* message_id */, |
184 BrowserPluginMsg_UpdateRect_Params) | 192 BrowserPluginMsg_UpdateRect_Params) |
OLD | NEW |