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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 450 // handle is valid in the context of the renderer. | 450 // handle is valid in the context of the renderer. |
| 451 // If |owner| is not empty, then the shared memory handle refers to |owner|'s | 451 // If |owner| is not empty, then the shared memory handle refers to |owner|'s |
| 452 // programmatically-defined scripts. Otherwise, the handle refers to all | 452 // programmatically-defined scripts. Otherwise, the handle refers to all |
| 453 // hosts' statically defined scripts. So far, only extension-hosts support | 453 // hosts' statically defined scripts. So far, only extension-hosts support |
| 454 // statically defined scripts; WebUI-hosts don't. | 454 // statically defined scripts; WebUI-hosts don't. |
| 455 // If |changed_hosts| is not empty, only the host in that set will | 455 // If |changed_hosts| is not empty, only the host in that set will |
| 456 // be updated. Otherwise, all hosts that have scripts in the shared memory | 456 // be updated. Otherwise, all hosts that have scripts in the shared memory |
| 457 // region will be updated. Note that the empty set => all hosts case is not | 457 // region will be updated. Note that the empty set => all hosts case is not |
| 458 // supported for per-extension programmatically-defined script regions; in such | 458 // supported for per-extension programmatically-defined script regions; in such |
| 459 // regions, the owner is expected to list itself as the only changed host. | 459 // regions, the owner is expected to list itself as the only changed host. |
| 460 IPC_MESSAGE_CONTROL3(ExtensionMsg_UpdateUserScripts, | 460 // |is_to_guest_render_process| indicates whether the IPC is sent to a guest |
|
Fady Samuel
2015/04/02 21:46:09
nit: is_guest_process is less wordy
| |
| 461 // render process. | |
| 462 IPC_MESSAGE_CONTROL4(ExtensionMsg_UpdateUserScripts, | |
| 461 base::SharedMemoryHandle, | 463 base::SharedMemoryHandle, |
| 462 HostID /* owner */, | 464 HostID /* owner */, |
| 463 std::set<HostID> /* changed hosts */) | 465 std::set<HostID> /* changed hosts */, |
| 466 bool /* is to a guest render process */) | |
| 464 | 467 |
| 465 // Trigger to execute declarative content script under browser control. | 468 // Trigger to execute declarative content script under browser control. |
| 466 IPC_MESSAGE_ROUTED4(ExtensionMsg_ExecuteDeclarativeScript, | 469 IPC_MESSAGE_ROUTED4(ExtensionMsg_ExecuteDeclarativeScript, |
| 467 int /* tab identifier */, | 470 int /* tab identifier */, |
| 468 extensions::ExtensionId /* extension identifier */, | 471 extensions::ExtensionId /* extension identifier */, |
| 469 int /* script identifier */, | 472 int /* script identifier */, |
| 470 GURL /* page URL where script should be injected */) | 473 GURL /* page URL where script should be injected */) |
| 471 | 474 |
| 472 // Tell the render view which browser window it's being attached to. | 475 // Tell the render view which browser window it's being attached to. |
| 473 IPC_MESSAGE_ROUTED1(ExtensionMsg_UpdateBrowserWindowId, | 476 IPC_MESSAGE_ROUTED1(ExtensionMsg_UpdateBrowserWindowId, |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 786 int /* acc_obj_id */, | 789 int /* acc_obj_id */, |
| 787 base::string16 /* selector */) | 790 base::string16 /* selector */) |
| 788 | 791 |
| 789 // Result of a query selector request. | 792 // Result of a query selector request. |
| 790 // result_acc_obj_id is the accessibility tree ID of the result element; 0 | 793 // result_acc_obj_id is the accessibility tree ID of the result element; 0 |
| 791 // indicates no result. | 794 // indicates no result. |
| 792 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_AutomationQuerySelector_Result, | 795 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_AutomationQuerySelector_Result, |
| 793 int /* request_id */, | 796 int /* request_id */, |
| 794 ExtensionHostMsg_AutomationQuerySelector_Error /* error */, | 797 ExtensionHostMsg_AutomationQuerySelector_Error /* error */, |
| 795 int /* result_acc_obj_id */) | 798 int /* result_acc_obj_id */) |
| OLD | NEW |