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

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: Rebased Created 7 years, 8 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
« no previous file with comments | « chrome/chrome_renderer.gypi ('k') | chrome/renderer/extensions/api_activity_logger.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, 593 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID,
582 int /* unique_id */) 594 int /* unique_id */)
583 595
584 // Resumes resource requests for a newly created app window. 596 // Resumes resource requests for a newly created app window.
585 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) 597 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */)
586 598
587 // Sent by the renderer when the draggable regions are updated. 599 // Sent by the renderer when the draggable regions are updated.
588 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions, 600 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions,
589 std::vector<extensions::DraggableRegion> /* regions */) 601 std::vector<extensions::DraggableRegion> /* regions */)
590 602
591 // Sent by the renderer to log a DOM action on the extension activity log. 603 // Sent by the renderer to log an API action to the extension activity log.
604 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddAPIActionToActivityLog,
605 std::string /* extension_id */,
606 ExtensionHostMsg_APIAction_Params)
607
608 // Sent by the renderer to log a DOM action to the extension activity log.
592 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddDOMActionToActivityLog, 609 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddDOMActionToActivityLog,
593 std::string /* extension_id */, 610 std::string /* extension_id */,
594 ExtensionHostMsg_DOMAction_Params) 611 ExtensionHostMsg_DOMAction_Params)
595 612
596 // Notifies the browser process that a tab has started or stopped matching 613 // Notifies the browser process that a tab has started or stopped matching
597 // certain conditions. This message is sent in response to several events: 614 // certain conditions. This message is sent in response to several events:
598 // 615 //
599 // * ExtensionMsg_WatchPages was received, updating the set of conditions. 616 // * ExtensionMsg_WatchPages was received, updating the set of conditions.
600 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate. 617 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate.
601 // Currently this only fires for the main frame. 618 // Currently this only fires for the main frame.
602 // * Something changed on an existing frame causing the set of matching searches 619 // * Something changed on an existing frame causing the set of matching searches
603 // to change. 620 // to change.
604 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, 621 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange,
605 std::vector<std::string> /* Matching CSS selectors */) 622 std::vector<std::string> /* Matching CSS selectors */)
OLDNEW
« no previous file with comments | « chrome/chrome_renderer.gypi ('k') | chrome/renderer/extensions/api_activity_logger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698