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 // IPC messages for extensions. | 5 // IPC messages for extensions. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include "base/shared_memory.h" | 8 #include "base/shared_memory.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/common/extensions/draggable_region.h" | 10 #include "chrome/common/extensions/draggable_region.h" |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 // the given ID. This always returns a valid port ID which can be used for | 403 // the given ID. This always returns a valid port ID which can be used for |
404 // sending messages. If an error occurred, the opener will be notified | 404 // sending messages. If an error occurred, the opener will be notified |
405 // asynchronously. | 405 // asynchronously. |
406 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToExtension, | 406 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToExtension, |
407 int /* routing_id */, | 407 int /* routing_id */, |
408 std::string /* source_extension_id */, | 408 std::string /* source_extension_id */, |
409 std::string /* target_extension_id */, | 409 std::string /* target_extension_id */, |
410 std::string /* channel_name */, | 410 std::string /* channel_name */, |
411 int /* port_id */) | 411 int /* port_id */) |
412 | 412 |
| 413 IPC_SYNC_MESSAGE_CONTROL5_1(ExtensionHostMsg_OpenChannelToNativeApp, |
| 414 int /* routing_id */, |
| 415 std::string /* source_extension_id */, |
| 416 std::string /* native_app_name */, |
| 417 std::string /* channel_name */, |
| 418 std::string /* connection_message */, |
| 419 int /* port_id */) |
| 420 |
413 // Get a port handle to the given tab. The handle can be used for sending | 421 // Get a port handle to the given tab. The handle can be used for sending |
414 // messages to the extension. | 422 // messages to the extension. |
415 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToTab, | 423 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToTab, |
416 int /* routing_id */, | 424 int /* routing_id */, |
417 int /* tab_id */, | 425 int /* tab_id */, |
418 std::string /* extension_id */, | 426 std::string /* extension_id */, |
419 std::string /* channel_name */, | 427 std::string /* channel_name */, |
420 int /* port_id */) | 428 int /* port_id */) |
421 | 429 |
422 // Send a message to an extension process. The handle is the value returned | 430 // Send a message to an extension process. The handle is the value returned |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 // browser process. | 517 // browser process. |
510 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, | 518 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, |
511 int /* unique_id */) | 519 int /* unique_id */) |
512 | 520 |
513 // Resumes resource requests for a newly created app window. | 521 // Resumes resource requests for a newly created app window. |
514 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) | 522 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) |
515 | 523 |
516 // Sent by the renderer when the draggable regions are updated. | 524 // Sent by the renderer when the draggable regions are updated. |
517 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions, | 525 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions, |
518 std::vector<extensions::DraggableRegion> /* regions */) | 526 std::vector<extensions::DraggableRegion> /* regions */) |
OLD | NEW |