Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 380 IPC_STRUCT_TRAITS_MEMBER(value) | 380 IPC_STRUCT_TRAITS_MEMBER(value) |
| 381 IPC_STRUCT_TRAITS_END() | 381 IPC_STRUCT_TRAITS_END() |
| 382 | 382 |
| 383 // Parameters structure for ExtensionMsg_UpdatePermissions. | 383 // Parameters structure for ExtensionMsg_UpdatePermissions. |
| 384 IPC_STRUCT_BEGIN(ExtensionMsg_UpdatePermissions_Params) | 384 IPC_STRUCT_BEGIN(ExtensionMsg_UpdatePermissions_Params) |
| 385 IPC_STRUCT_MEMBER(std::string, extension_id) | 385 IPC_STRUCT_MEMBER(std::string, extension_id) |
| 386 IPC_STRUCT_MEMBER(ExtensionMsg_PermissionSetStruct, active_permissions) | 386 IPC_STRUCT_MEMBER(ExtensionMsg_PermissionSetStruct, active_permissions) |
| 387 IPC_STRUCT_MEMBER(ExtensionMsg_PermissionSetStruct, withheld_permissions) | 387 IPC_STRUCT_MEMBER(ExtensionMsg_PermissionSetStruct, withheld_permissions) |
| 388 IPC_STRUCT_END() | 388 IPC_STRUCT_END() |
| 389 | 389 |
| 390 // ----------------------------------------------------------------------------- | |
|
not at google - send to devlin
2015/09/03 20:17:54
Please don't add these --------------- comments, b
paulmeyer
2015/09/08 18:51:36
Done.
| |
| 390 // Messages sent from the browser to the renderer. | 391 // Messages sent from the browser to the renderer. |
| 391 | 392 |
| 392 // The browser sends this message in response to all extension api calls. The | 393 // The browser sends this message in response to all extension api calls. The |
| 393 // response data (if any) is one of the base::Value subclasses, wrapped as the | 394 // response data (if any) is one of the base::Value subclasses, wrapped as the |
| 394 // first element in a ListValue. | 395 // first element in a ListValue. |
| 395 IPC_MESSAGE_ROUTED4(ExtensionMsg_Response, | 396 IPC_MESSAGE_ROUTED4(ExtensionMsg_Response, |
| 396 int /* request_id */, | 397 int /* request_id */, |
| 397 bool /* success */, | 398 bool /* success */, |
| 398 base::ListValue /* response wrapper (see comment above) */, | 399 base::ListValue /* response wrapper (see comment above) */, |
| 399 std::string /* error */) | 400 std::string /* error */) |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 571 std::vector<std::string> /* CSS selectors */) | 572 std::vector<std::string> /* CSS selectors */) |
| 572 | 573 |
| 573 // Send by the browser to indicate a Blob handle has been transferred to the | 574 // Send by the browser to indicate a Blob handle has been transferred to the |
| 574 // renderer. This is sent after the actual extension response, and depends on | 575 // renderer. This is sent after the actual extension response, and depends on |
| 575 // the sequential nature of IPCs so that the blob has already been caught. | 576 // the sequential nature of IPCs so that the blob has already been caught. |
| 576 // This is a separate control message, so that the renderer process will send | 577 // This is a separate control message, so that the renderer process will send |
| 577 // an acknowledgement even if the RenderView has closed or navigated away. | 578 // an acknowledgement even if the RenderView has closed or navigated away. |
| 578 IPC_MESSAGE_CONTROL1(ExtensionMsg_TransferBlobs, | 579 IPC_MESSAGE_CONTROL1(ExtensionMsg_TransferBlobs, |
| 579 std::vector<std::string> /* blob_uuids */) | 580 std::vector<std::string> /* blob_uuids */) |
| 580 | 581 |
| 582 // Report the WebView partition ID to the WebView guest renderer process. | |
| 583 IPC_MESSAGE_CONTROL1(ExtensionMsg_SetWebViewPartitionID, | |
| 584 std::string /* webview_partition_id */) | |
| 585 | |
| 586 // ----------------------------------------------------------------------------- | |
| 581 // Messages sent from the renderer to the browser. | 587 // Messages sent from the renderer to the browser. |
| 582 | 588 |
| 583 // A renderer sends this message when an extension process starts an API | 589 // A renderer sends this message when an extension process starts an API |
| 584 // request. The browser will always respond with a ExtensionMsg_Response. | 590 // request. The browser will always respond with a ExtensionMsg_Response. |
| 585 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_Request, | 591 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_Request, |
| 586 ExtensionHostMsg_Request_Params) | 592 ExtensionHostMsg_Request_Params) |
| 587 | 593 |
| 588 // A renderer sends this message when an extension process starts an API | 594 // A renderer sends this message when an extension process starts an API |
| 589 // request. The browser will always respond with a ExtensionMsg_Response. | 595 // request. The browser will always respond with a ExtensionMsg_Response. |
| 590 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RequestForIOThread, | 596 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RequestForIOThread, |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 800 int /* acc_obj_id */, | 806 int /* acc_obj_id */, |
| 801 base::string16 /* selector */) | 807 base::string16 /* selector */) |
| 802 | 808 |
| 803 // Result of a query selector request. | 809 // Result of a query selector request. |
| 804 // result_acc_obj_id is the accessibility tree ID of the result element; 0 | 810 // result_acc_obj_id is the accessibility tree ID of the result element; 0 |
| 805 // indicates no result. | 811 // indicates no result. |
| 806 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_AutomationQuerySelector_Result, | 812 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_AutomationQuerySelector_Result, |
| 807 int /* request_id */, | 813 int /* request_id */, |
| 808 ExtensionHostMsg_AutomationQuerySelector_Error /* error */, | 814 ExtensionHostMsg_AutomationQuerySelector_Error /* error */, |
| 809 int /* result_acc_obj_id */) | 815 int /* result_acc_obj_id */) |
| OLD | NEW |