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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/extension_messages.h
diff --git a/chrome/common/extensions/extension_messages.h b/chrome/common/extensions/extension_messages.h
index 1ac5f838b02fd125af2373b0a4aeadfdbd6021fb..56b43b976757dbdb361bff7ffd6d566a81e37556 100644
--- a/chrome/common/extensions/extension_messages.h
+++ b/chrome/common/extensions/extension_messages.h
@@ -30,6 +30,18 @@
IPC_ENUM_TRAITS(chrome::ViewType)
+// Parameters structure for ExtensionHostMsg_AddAPIActionToActivityLog.
+IPC_STRUCT_BEGIN(ExtensionHostMsg_APIAction_Params)
+ // API name.
+ IPC_STRUCT_MEMBER(std::string, api_call)
+
+ // List of arguments.
+ IPC_STRUCT_MEMBER(ListValue, arguments)
+
+ // Extra logging information.
+ IPC_STRUCT_MEMBER(std::string, extra)
+IPC_STRUCT_END()
+
// Parameters structure for ExtensionHostMsg_AddDOMActionToActivityLog.
IPC_STRUCT_BEGIN(ExtensionHostMsg_DOMAction_Params)
// URL of the page.
@@ -606,7 +618,12 @@ IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */)
IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions,
std::vector<extensions::DraggableRegion> /* regions */)
-// Sent by the renderer to log a DOM action on the extension activity log.
+// Sent by the renderer to log an API action to the extension activity log.
+IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddAPIActionToActivityLog,
+ std::string /* extension_id */,
+ ExtensionHostMsg_APIAction_Params)
+
+// Sent by the renderer to log a DOM action to the extension activity log.
IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddDOMActionToActivityLog,
std::string /* extension_id */,
ExtensionHostMsg_DOMAction_Params)

Powered by Google App Engine
This is Rietveld 408576698