OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Developer tools consist of the following parts: | 5 // Developer tools consist of the following parts: |
6 // | 6 // |
7 // DevToolsAgent lives in the renderer of an inspected page and provides access | 7 // DevToolsAgent lives in the renderer of an inspected page and provides access |
8 // to the pages resources, DOM, v8 etc. by means of IPC messages. | 8 // to the pages resources, DOM, v8 etc. by means of IPC messages. |
9 // | 9 // |
10 // DevToolsClient is a thin delegate that lives in the tools front-end | 10 // DevToolsClient is a thin delegate that lives in the tools front-end |
(...skipping 27 matching lines...) Expand all Loading... |
38 // | 38 // |
39 // This file describes developer tools message types. | 39 // This file describes developer tools message types. |
40 | 40 |
41 // Multiply-included message file, no standard include guard. | 41 // Multiply-included message file, no standard include guard. |
42 #include <map> | 42 #include <map> |
43 #include <string> | 43 #include <string> |
44 | 44 |
45 #include "ipc/ipc_message_macros.h" | 45 #include "ipc/ipc_message_macros.h" |
46 | 46 |
47 // Singly-included section. | 47 // Singly-included section. |
48 #ifndef CHROME_COMMON_DEVTOOLS_MESSAGES_H_ | 48 #ifndef CONTENT_COMMON_DEVTOOLS_MESSAGES_H_ |
49 #define CHROME_COMMON_DEVTOOLS_MESSAGES_H_ | 49 #define CONTENT_COMMON_DEVTOOLS_MESSAGES_H_ |
50 | 50 |
51 typedef std::map<std::string, std::string> DevToolsRuntimeProperties; | 51 typedef std::map<std::string, std::string> DevToolsRuntimeProperties; |
52 | 52 |
53 #endif // CHROME_COMMON_DEVTOOLS_MESSAGES_H_ | 53 #endif // CONTENT_COMMON_DEVTOOLS_MESSAGES_H_ |
54 | 54 |
55 #define IPC_MESSAGE_START DevToolsMsgStart | 55 #define IPC_MESSAGE_START DevToolsMsgStart |
56 | 56 |
57 // These are messages sent from DevToolsAgent to DevToolsClient through the | 57 // These are messages sent from DevToolsAgent to DevToolsClient through the |
58 // browser. | 58 // browser. |
59 // WebKit-level transport. | 59 // WebKit-level transport. |
60 IPC_MESSAGE_CONTROL1(DevToolsClientMsg_DispatchOnInspectorFrontend, | 60 IPC_MESSAGE_CONTROL1(DevToolsClientMsg_DispatchOnInspectorFrontend, |
61 std::string /* message */) | 61 std::string /* message */) |
62 | 62 |
63 // Legacy debugger output message. | 63 // Legacy debugger output message. |
(...skipping 11 matching lines...) Expand all Loading... |
75 // Tells agent that there is no longer a client host connected to it. | 75 // Tells agent that there is no longer a client host connected to it. |
76 IPC_MESSAGE_CONTROL0(DevToolsAgentMsg_Detach) | 76 IPC_MESSAGE_CONTROL0(DevToolsAgentMsg_Detach) |
77 | 77 |
78 // Tells agent that the front-end has been loaded | 78 // Tells agent that the front-end has been loaded |
79 IPC_MESSAGE_CONTROL0(DevToolsAgentMsg_FrontendLoaded) | 79 IPC_MESSAGE_CONTROL0(DevToolsAgentMsg_FrontendLoaded) |
80 | 80 |
81 // WebKit-level transport. | 81 // WebKit-level transport. |
82 IPC_MESSAGE_CONTROL1(DevToolsAgentMsg_DispatchOnInspectorBackend, | 82 IPC_MESSAGE_CONTROL1(DevToolsAgentMsg_DispatchOnInspectorBackend, |
83 std::string /* message */) | 83 std::string /* message */) |
84 | 84 |
| 85 // WebKit-level transport for messages from WorkerInspectorController to |
| 86 // InspectorController. |
| 87 IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_DispatchMessageFromWorker, |
| 88 std::string /* message */) |
| 89 |
85 // Send debugger command to the debugger agent. Debugger commands should | 90 // Send debugger command to the debugger agent. Debugger commands should |
86 // be handled on IO thread(while all other devtools messages are handled in | 91 // be handled on IO thread(while all other devtools messages are handled in |
87 // the render thread) to allow executing the commands when v8 is on a | 92 // the render thread) to allow executing the commands when v8 is on a |
88 // breakpoint. | 93 // breakpoint. |
89 IPC_MESSAGE_CONTROL1(DevToolsAgentMsg_DebuggerCommand, | 94 IPC_MESSAGE_CONTROL1(DevToolsAgentMsg_DebuggerCommand, |
90 std::string /* command */) | 95 std::string /* command */) |
91 | 96 |
92 // Inspect element with the given coordinates. | 97 // Inspect element with the given coordinates. |
93 IPC_MESSAGE_CONTROL2(DevToolsAgentMsg_InspectElement, | 98 IPC_MESSAGE_CONTROL2(DevToolsAgentMsg_InspectElement, |
94 int /* x */, | 99 int /* x */, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 // Shows Save As dialog for content. | 138 // Shows Save As dialog for content. |
134 IPC_MESSAGE_ROUTED2(DevToolsHostMsg_SaveAs, | 139 IPC_MESSAGE_ROUTED2(DevToolsHostMsg_SaveAs, |
135 std::string /* file_name */, | 140 std::string /* file_name */, |
136 std::string /* content */) | 141 std::string /* content */) |
137 | 142 |
138 // Updates runtime features store in devtools manager in order to support | 143 // Updates runtime features store in devtools manager in order to support |
139 // cross-navigation instrumentation. | 144 // cross-navigation instrumentation. |
140 IPC_MESSAGE_ROUTED2(DevToolsHostMsg_RuntimePropertyChanged, | 145 IPC_MESSAGE_ROUTED2(DevToolsHostMsg_RuntimePropertyChanged, |
141 std::string /* name */, | 146 std::string /* name */, |
142 std::string /* value */) | 147 std::string /* value */) |
| 148 |
| 149 |
| 150 //----------------------------------------------------------------------------- |
| 151 // These are messages sent from the inspected page renderer to the worker |
| 152 // renderer. |
| 153 |
| 154 IPC_MESSAGE_ROUTED0(WorkerDevToolsAgentMsg_Attach) |
| 155 IPC_MESSAGE_ROUTED0(WorkerDevToolsAgentMsg_Detach) |
| 156 IPC_MESSAGE_ROUTED1(WorkerDevToolsAgentMsg_DispatchOnInspectorBackend, |
| 157 std::string /* message */) |
OLD | NEW |