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 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 // Sent from the renderer to the browser to notify that content scripts are | 562 // Sent from the renderer to the browser to notify that content scripts are |
563 // running in the renderer that the IPC originated from. | 563 // running in the renderer that the IPC originated from. |
564 // Note that the page_id is for the parent (or more accurately the topmost) | 564 // Note that the page_id is for the parent (or more accurately the topmost) |
565 // frame (e.g. if executing in an iframe this is the page ID of the parent, | 565 // frame (e.g. if executing in an iframe this is the page ID of the parent, |
566 // unless the parent is an iframe... etc). | 566 // unless the parent is an iframe... etc). |
567 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_ContentScriptsExecuting, | 567 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_ContentScriptsExecuting, |
568 ExecutingScriptsMap, | 568 ExecutingScriptsMap, |
569 int32 /* page_id of the _topmost_ frame */, | 569 int32 /* page_id of the _topmost_ frame */, |
570 GURL /* url of the _topmost_ frame */) | 570 GURL /* url of the _topmost_ frame */) |
571 | 571 |
572 IPC_MESSAGE_ROUTED2(ExtensionHostMsg_NotifyExtensionScriptExecution, | 572 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_RequestContentScriptPermission, |
573 std::string /* extension id */, | 573 std::string /* extension id */, |
574 int /* page id */) | 574 int /* page id */, |
| 575 int /* request id */) |
| 576 |
| 577 IPC_MESSAGE_ROUTED1(ExtensionMsg_GrantContentScriptPermission, |
| 578 int /* request id */) |
575 | 579 |
576 // Sent by the renderer when a web page is checking if its app is installed. | 580 // Sent by the renderer when a web page is checking if its app is installed. |
577 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_GetAppInstallState, | 581 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_GetAppInstallState, |
578 GURL /* requestor_url */, | 582 GURL /* requestor_url */, |
579 int32 /* return_route_id */, | 583 int32 /* return_route_id */, |
580 int32 /* callback_id */) | 584 int32 /* callback_id */) |
581 | 585 |
582 // Optional Ack message sent to the browser to notify that the response to a | 586 // Optional Ack message sent to the browser to notify that the response to a |
583 // function has been processed. | 587 // function has been processed. |
584 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_ResponseAck, | 588 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_ResponseAck, |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
632 // certain conditions. This message is sent in response to several events: | 636 // certain conditions. This message is sent in response to several events: |
633 // | 637 // |
634 // * ExtensionMsg_WatchPages was received, updating the set of conditions. | 638 // * ExtensionMsg_WatchPages was received, updating the set of conditions. |
635 // * A new page is loaded. This will be sent after | 639 // * A new page is loaded. This will be sent after |
636 // FrameHostMsg_DidCommitProvisionalLoad. Currently this only fires for the | 640 // FrameHostMsg_DidCommitProvisionalLoad. Currently this only fires for the |
637 // main frame. | 641 // main frame. |
638 // * Something changed on an existing frame causing the set of matching searches | 642 // * Something changed on an existing frame causing the set of matching searches |
639 // to change. | 643 // to change. |
640 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, | 644 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, |
641 std::vector<std::string> /* Matching CSS selectors */) | 645 std::vector<std::string> /* Matching CSS selectors */) |
OLD | NEW |