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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
443 | 443 |
444 // Notification that renderer should run some JavaScript code. | 444 // Notification that renderer should run some JavaScript code. |
445 IPC_MESSAGE_ROUTED1(ExtensionMsg_ExecuteCode, | 445 IPC_MESSAGE_ROUTED1(ExtensionMsg_ExecuteCode, |
446 ExtensionMsg_ExecuteCode_Params) | 446 ExtensionMsg_ExecuteCode_Params) |
447 | 447 |
448 // Notification that the user scripts have been updated. It has one | 448 // Notification that the user scripts have been updated. It has one |
449 // SharedMemoryHandle argument consisting of the pickled script data. This | 449 // SharedMemoryHandle argument consisting of the pickled script data. This |
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 // extensions' statically defined scripts. | 453 // hosts' statically defined scripts. So for, only extension-hosts support |
Devlin
2015/03/09 16:00:04
nit: so far, not so for.
Xi Han
2015/03/09 19:12:36
Oops, good catch.
| |
454 // If |changed_extensions| is not empty, only the extensions in that set will | 454 // statically defined scripts; WebUI-hosts don't. |
455 // be updated. Otherwise, all extensions that have scripts in the shared memory | 455 // If |changed_hosts| is not empty, only the host in that set will |
456 // region will be updated. Note that the empty set => all extensions case is not | 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 // supported for per-extension programmatically-defined script regions; in such | 458 // supported for per-extension programmatically-defined script regions; in such |
458 // regions, the owner is expected to list itself as the only changed extension. | 459 // regions, the owner is expected to list itself as the only changed host. |
459 IPC_MESSAGE_CONTROL3(ExtensionMsg_UpdateUserScripts, | 460 IPC_MESSAGE_CONTROL3(ExtensionMsg_UpdateUserScripts, |
460 base::SharedMemoryHandle, | 461 base::SharedMemoryHandle, |
461 extensions::ExtensionId /* owner */, | 462 HostID /* owner */, |
462 std::set<std::string> /* changed extensions */) | 463 std::set<HostID> /* changed hosts */) |
463 | 464 |
464 // Trigger to execute declarative content script under browser control. | 465 // Trigger to execute declarative content script under browser control. |
465 IPC_MESSAGE_ROUTED4(ExtensionMsg_ExecuteDeclarativeScript, | 466 IPC_MESSAGE_ROUTED4(ExtensionMsg_ExecuteDeclarativeScript, |
466 int /* tab identifier */, | 467 int /* tab identifier */, |
467 extensions::ExtensionId /* extension identifier */, | 468 extensions::ExtensionId /* extension identifier */, |
468 int /* script identifier */, | 469 int /* script identifier */, |
469 GURL /* page URL where script should be injected */) | 470 GURL /* page URL where script should be injected */) |
470 | 471 |
471 // Tell the render view which browser window it's being attached to. | 472 // Tell the render view which browser window it's being attached to. |
472 IPC_MESSAGE_ROUTED1(ExtensionMsg_UpdateBrowserWindowId, | 473 IPC_MESSAGE_ROUTED1(ExtensionMsg_UpdateBrowserWindowId, |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
790 int /* acc_obj_id */, | 791 int /* acc_obj_id */, |
791 base::string16 /* selector */) | 792 base::string16 /* selector */) |
792 | 793 |
793 // Result of a query selector request. | 794 // Result of a query selector request. |
794 // result_acc_obj_id is the accessibility tree ID of the result element; 0 | 795 // result_acc_obj_id is the accessibility tree ID of the result element; 0 |
795 // indicates no result. | 796 // indicates no result. |
796 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_AutomationQuerySelector_Result, | 797 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_AutomationQuerySelector_Result, |
797 int /* request_id */, | 798 int /* request_id */, |
798 ExtensionHostMsg_AutomationQuerySelector_Error /* error */, | 799 ExtensionHostMsg_AutomationQuerySelector_Error /* error */, |
799 int /* result_acc_obj_id */) | 800 int /* result_acc_obj_id */) |
OLD | NEW |