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

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: Modified setHandleRequest to avoid double logging 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 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, 597 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID,
586 int /* unique_id */) 598 int /* unique_id */)
587 599
588 // Resumes resource requests for a newly created app window. 600 // Resumes resource requests for a newly created app window.
589 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) 601 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */)
590 602
591 // Sent by the renderer when the draggable regions are updated. 603 // Sent by the renderer when the draggable regions are updated.
592 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions, 604 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions,
593 std::vector<extensions::DraggableRegion> /* regions */) 605 std::vector<extensions::DraggableRegion> /* regions */)
594 606
595 // Sent by the renderer to log a DOM action on the extension activity log. 607 // Sent by the renderer to log an API action to the extension activity log.
608 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddAPIActionToActivityLog,
609 std::string /* extension_id */,
610 ExtensionHostMsg_APIAction_Params)
611
612 // Sent by the renderer to log a DOM action to the extension activity log.
596 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddDOMActionToActivityLog, 613 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddDOMActionToActivityLog,
597 std::string /* extension_id */, 614 std::string /* extension_id */,
598 ExtensionHostMsg_DOMAction_Params) 615 ExtensionHostMsg_DOMAction_Params)
599 616
600 // Notifies the browser process that a tab has started or stopped matching 617 // Notifies the browser process that a tab has started or stopped matching
601 // certain conditions. This message is sent in response to several events: 618 // certain conditions. This message is sent in response to several events:
602 // 619 //
603 // * ExtensionMsg_WatchPages was received, updating the set of conditions. 620 // * ExtensionMsg_WatchPages was received, updating the set of conditions.
604 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate. 621 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate.
605 // Currently this only fires for the main frame. 622 // Currently this only fires for the main frame.
606 // * Something changed on an existing frame causing the set of matching searches 623 // * Something changed on an existing frame causing the set of matching searches
607 // to change. 624 // to change.
608 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, 625 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange,
609 std::vector<std::string> /* Matching CSS selectors */) 626 std::vector<std::string> /* Matching CSS selectors */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698