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_ROUTED1(ExtensionHostMsg_NotifyExtensionScriptExecution, | |
573 std::string /* extension id */) | |
not at google - send to devlin
2014/05/07 22:49:02
we should include the page ID here to avoid races.
Devlin
2014/05/08 18:15:46
Done.
| |
574 | |
572 // Sent by the renderer when a web page is checking if its app is installed. | 575 // Sent by the renderer when a web page is checking if its app is installed. |
573 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_GetAppInstallState, | 576 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_GetAppInstallState, |
574 GURL /* requestor_url */, | 577 GURL /* requestor_url */, |
575 int32 /* return_route_id */, | 578 int32 /* return_route_id */, |
576 int32 /* callback_id */) | 579 int32 /* callback_id */) |
577 | 580 |
578 // Optional Ack message sent to the browser to notify that the response to a | 581 // Optional Ack message sent to the browser to notify that the response to a |
579 // function has been processed. | 582 // function has been processed. |
580 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_ResponseAck, | 583 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_ResponseAck, |
581 int /* request_id */) | 584 int /* request_id */) |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
628 // certain conditions. This message is sent in response to several events: | 631 // certain conditions. This message is sent in response to several events: |
629 // | 632 // |
630 // * ExtensionMsg_WatchPages was received, updating the set of conditions. | 633 // * ExtensionMsg_WatchPages was received, updating the set of conditions. |
631 // * A new page is loaded. This will be sent after | 634 // * A new page is loaded. This will be sent after |
632 // FrameHostMsg_DidCommitProvisionalLoad. Currently this only fires for the | 635 // FrameHostMsg_DidCommitProvisionalLoad. Currently this only fires for the |
633 // main frame. | 636 // main frame. |
634 // * Something changed on an existing frame causing the set of matching searches | 637 // * Something changed on an existing frame causing the set of matching searches |
635 // to change. | 638 // to change. |
636 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, | 639 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, |
637 std::vector<std::string> /* Matching CSS selectors */) | 640 std::vector<std::string> /* Matching CSS selectors */) |
OLD | NEW |