OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 12 matching lines...) Expand all Loading... |
23 #include "extensions/common/url_pattern.h" | 23 #include "extensions/common/url_pattern.h" |
24 #include "extensions/common/url_pattern_set.h" | 24 #include "extensions/common/url_pattern_set.h" |
25 #include "extensions/common/view_type.h" | 25 #include "extensions/common/view_type.h" |
26 #include "googleurl/src/gurl.h" | 26 #include "googleurl/src/gurl.h" |
27 #include "ipc/ipc_message_macros.h" | 27 #include "ipc/ipc_message_macros.h" |
28 | 28 |
29 #define IPC_MESSAGE_START ExtensionMsgStart | 29 #define IPC_MESSAGE_START ExtensionMsgStart |
30 | 30 |
31 IPC_ENUM_TRAITS(extensions::ViewType) | 31 IPC_ENUM_TRAITS(extensions::ViewType) |
32 | 32 |
33 // Parameters structure for ExtensionHostMsg_AddAPIActionToActivityLog. | 33 // Parameters structure for ExtensionHostMsg_AddAPIActionToActivityLog and |
34 IPC_STRUCT_BEGIN(ExtensionHostMsg_APIAction_Params) | 34 // ExtensionHostMsg_AddEventToActivityLog. |
| 35 IPC_STRUCT_BEGIN(ExtensionHostMsg_APIActionOrEvent_Params) |
35 // API name. | 36 // API name. |
36 IPC_STRUCT_MEMBER(std::string, api_call) | 37 IPC_STRUCT_MEMBER(std::string, api_call) |
37 | 38 |
38 // List of arguments. | 39 // List of arguments. |
39 IPC_STRUCT_MEMBER(ListValue, arguments) | 40 IPC_STRUCT_MEMBER(ListValue, arguments) |
40 | 41 |
41 // Extra logging information. | 42 // Extra logging information. |
42 IPC_STRUCT_MEMBER(std::string, extra) | 43 IPC_STRUCT_MEMBER(std::string, extra) |
43 IPC_STRUCT_END() | 44 IPC_STRUCT_END() |
44 | 45 |
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 // Resumes resource requests for a newly created app window. | 597 // Resumes resource requests for a newly created app window. |
597 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) | 598 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) |
598 | 599 |
599 // Sent by the renderer when the draggable regions are updated. | 600 // Sent by the renderer when the draggable regions are updated. |
600 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions, | 601 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions, |
601 std::vector<extensions::DraggableRegion> /* regions */) | 602 std::vector<extensions::DraggableRegion> /* regions */) |
602 | 603 |
603 // Sent by the renderer to log an API action to the extension activity log. | 604 // Sent by the renderer to log an API action to the extension activity log. |
604 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddAPIActionToActivityLog, | 605 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddAPIActionToActivityLog, |
605 std::string /* extension_id */, | 606 std::string /* extension_id */, |
606 ExtensionHostMsg_APIAction_Params) | 607 ExtensionHostMsg_APIActionOrEvent_Params) |
| 608 |
| 609 // Sent by the renderer to log an event to the extension activity log. |
| 610 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddEventToActivityLog, |
| 611 std::string /* extension_id */, |
| 612 ExtensionHostMsg_APIActionOrEvent_Params) |
607 | 613 |
608 // Sent by the renderer to log a DOM action to the extension activity log. | 614 // Sent by the renderer to log a DOM action to the extension activity log. |
609 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddDOMActionToActivityLog, | 615 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddDOMActionToActivityLog, |
610 std::string /* extension_id */, | 616 std::string /* extension_id */, |
611 ExtensionHostMsg_DOMAction_Params) | 617 ExtensionHostMsg_DOMAction_Params) |
612 | 618 |
613 // Notifies the browser process that a tab has started or stopped matching | 619 // Notifies the browser process that a tab has started or stopped matching |
614 // certain conditions. This message is sent in response to several events: | 620 // certain conditions. This message is sent in response to several events: |
615 // | 621 // |
616 // * ExtensionMsg_WatchPages was received, updating the set of conditions. | 622 // * ExtensionMsg_WatchPages was received, updating the set of conditions. |
617 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate. | 623 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate. |
618 // Currently this only fires for the main frame. | 624 // Currently this only fires for the main frame. |
619 // * Something changed on an existing frame causing the set of matching searches | 625 // * Something changed on an existing frame causing the set of matching searches |
620 // to change. | 626 // to change. |
621 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, | 627 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, |
622 std::vector<std::string> /* Matching CSS selectors */) | 628 std::vector<std::string> /* Matching CSS selectors */) |
OLD | NEW |