Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: chrome/common/extensions/extension_messages.h

Issue 12517011: Added activity logging for ext APIs with custom bindings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: lint fix Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
23 #include "extensions/common/draggable_region.h" 23 #include "extensions/common/draggable_region.h"
24 #include "extensions/common/url_pattern.h" 24 #include "extensions/common/url_pattern.h"
25 #include "extensions/common/url_pattern_set.h" 25 #include "extensions/common/url_pattern_set.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(chrome::ViewType) 31 IPC_ENUM_TRAITS(chrome::ViewType)
32 32
33 // Parameters structure for ExtensionHostMsg_AddAPIActionToActivityLog.
34 IPC_STRUCT_BEGIN(ExtensionHostMsg_APIAction_Params)
35 // API name.
36 IPC_STRUCT_MEMBER(std::string, api_call)
37
38 // List of arguments.
39 IPC_STRUCT_MEMBER(ListValue, arguments)
40
41 // Extra logging information.
42 IPC_STRUCT_MEMBER(std::string, extra)
43 IPC_STRUCT_END()
44
33 // Parameters structure for ExtensionHostMsg_AddDOMActionToActivityLog. 45 // Parameters structure for ExtensionHostMsg_AddDOMActionToActivityLog.
34 IPC_STRUCT_BEGIN(ExtensionHostMsg_DOMAction_Params) 46 IPC_STRUCT_BEGIN(ExtensionHostMsg_DOMAction_Params)
35 // URL of the page. 47 // URL of the page.
36 IPC_STRUCT_MEMBER(GURL, url) 48 IPC_STRUCT_MEMBER(GURL, url)
37 49
38 // Title of the page. 50 // Title of the page.
39 IPC_STRUCT_MEMBER(string16, url_title) 51 IPC_STRUCT_MEMBER(string16, url_title)
40 52
41 // API name. 53 // API name.
42 IPC_STRUCT_MEMBER(std::string, api_call) 54 IPC_STRUCT_MEMBER(std::string, api_call)
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, 611 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID,
600 int /* unique_id */) 612 int /* unique_id */)
601 613
602 // Resumes resource requests for a newly created app window. 614 // Resumes resource requests for a newly created app window.
603 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) 615 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */)
604 616
605 // Sent by the renderer when the draggable regions are updated. 617 // Sent by the renderer when the draggable regions are updated.
606 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions, 618 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions,
607 std::vector<extensions::DraggableRegion> /* regions */) 619 std::vector<extensions::DraggableRegion> /* regions */)
608 620
609 // Sent by the renderer to log a DOM action on the extension activity log. 621 // Sent by the renderer to log an API action to the extension activity log.
622 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddAPIActionToActivityLog,
623 std::string /* extension_id */,
624 ExtensionHostMsg_APIAction_Params)
625
626 // Sent by the renderer to log a DOM action to the extension activity log.
610 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddDOMActionToActivityLog, 627 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddDOMActionToActivityLog,
611 std::string /* extension_id */, 628 std::string /* extension_id */,
612 ExtensionHostMsg_DOMAction_Params) 629 ExtensionHostMsg_DOMAction_Params)
613 630
614 // Notifies the browser process that a tab has started or stopped matching 631 // Notifies the browser process that a tab has started or stopped matching
615 // certain conditions. This message is sent in response to several events: 632 // certain conditions. This message is sent in response to several events:
616 // 633 //
617 // * ExtensionMsg_WatchPages was received, updating the set of conditions. 634 // * ExtensionMsg_WatchPages was received, updating the set of conditions.
618 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate. 635 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate.
619 // Currently this only fires for the main frame. 636 // Currently this only fires for the main frame.
620 // * 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
621 // to change. 638 // to change.
622 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, 639 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange,
623 std::vector<std::string> /* Matching CSS selectors */) 640 std::vector<std::string> /* Matching CSS selectors */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698