| 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 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 576 // Sent from the renderer to the browser to notify that content scripts are | 576 // Sent from the renderer to the browser to notify that content scripts are |
| 577 // running in the renderer that the IPC originated from. | 577 // running in the renderer that the IPC originated from. |
| 578 // Note that the page_id is for the parent (or more accurately the topmost) | 578 // Note that the page_id is for the parent (or more accurately the topmost) |
| 579 // frame (e.g. if executing in an iframe this is the page ID of the parent, | 579 // frame (e.g. if executing in an iframe this is the page ID of the parent, |
| 580 // unless the parent is an iframe... etc). | 580 // unless the parent is an iframe... etc). |
| 581 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_ContentScriptsExecuting, | 581 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_ContentScriptsExecuting, |
| 582 ExecutingScriptsMap, | 582 ExecutingScriptsMap, |
| 583 int32 /* page_id of the _topmost_ frame */, | 583 int32 /* page_id of the _topmost_ frame */, |
| 584 GURL /* url of the _topmost_ frame */) | 584 GURL /* url of the _topmost_ frame */) |
| 585 | 585 |
| 586 // Sent from the renderer to the browser to request permission for a content | 586 // Sent from the renderer to the browser to request permission for a script |
| 587 // script to execute on a given page. | 587 // injection. |
| 588 // If request id is -1, this signals that the request has already ran, and this | 588 // If request id is -1, this signals that the request has already ran, and this |
| 589 // merely serves as a notification. This happens when the feature to disable | 589 // merely serves as a notification. This happens when the feature to disable |
| 590 // scripts running without user consent is not enabled. | 590 // scripts running without user consent is not enabled. |
| 591 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_RequestContentScriptPermission, | 591 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_RequestScriptInjectionPermission, |
| 592 std::string /* extension id */, | 592 std::string /* extension id */, |
| 593 int /* page id */, | 593 int /* page id */, |
| 594 int /* request id */) | 594 int /* request id */) |
| 595 | 595 |
| 596 // Sent from the browser to the renderer in reply to a | 596 // Sent from the browser to the renderer in reply to a |
| 597 // RequestContentScriptPermission message, granting permission for a content | 597 // RequestScriptInjectionPermission message, granting permission for a script |
| 598 // script to run. | 598 // script to run. |
| 599 IPC_MESSAGE_ROUTED1(ExtensionMsg_GrantContentScriptPermission, | 599 IPC_MESSAGE_ROUTED1(ExtensionMsg_PermitScriptInjection, int /* request id */) |
| 600 int /* request id */) | |
| 601 | 600 |
| 602 // Sent by the renderer when a web page is checking if its app is installed. | 601 // Sent by the renderer when a web page is checking if its app is installed. |
| 603 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_GetAppInstallState, | 602 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_GetAppInstallState, |
| 604 GURL /* requestor_url */, | 603 GURL /* requestor_url */, |
| 605 int32 /* return_route_id */, | 604 int32 /* return_route_id */, |
| 606 int32 /* callback_id */) | 605 int32 /* callback_id */) |
| 607 | 606 |
| 608 // Optional Ack message sent to the browser to notify that the response to a | 607 // Optional Ack message sent to the browser to notify that the response to a |
| 609 // function has been processed. | 608 // function has been processed. |
| 610 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_ResponseAck, | 609 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_ResponseAck, |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 662 // FrameHostMsg_DidCommitProvisionalLoad. Currently this only fires for the | 661 // FrameHostMsg_DidCommitProvisionalLoad. Currently this only fires for the |
| 663 // main frame. | 662 // main frame. |
| 664 // * Something changed on an existing frame causing the set of matching searches | 663 // * Something changed on an existing frame causing the set of matching searches |
| 665 // to change. | 664 // to change. |
| 666 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, | 665 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, |
| 667 std::vector<std::string> /* Matching CSS selectors */) | 666 std::vector<std::string> /* Matching CSS selectors */) |
| 668 | 667 |
| 669 // Sent by the renderer when it has received a Blob handle from the browser. | 668 // Sent by the renderer when it has received a Blob handle from the browser. |
| 670 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_TransferBlobsAck, | 669 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_TransferBlobsAck, |
| 671 std::vector<std::string> /* blob_uuids */) | 670 std::vector<std::string> /* blob_uuids */) |
| OLD | NEW |