| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 49 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 50 | 50 |
| 51 #define IPC_MESSAGE_START DevToolsMsgStart | 51 #define IPC_MESSAGE_START DevToolsMsgStart |
| 52 | 52 |
| 53 // These are messages sent from DevToolsAgent to DevToolsClient through the | 53 // These are messages sent from DevToolsAgent to DevToolsClient through the |
| 54 // browser. | 54 // browser. |
| 55 // WebKit-level transport. | 55 // WebKit-level transport. |
| 56 IPC_MESSAGE_ROUTED1(DevToolsClientMsg_DispatchOnInspectorFrontend, | 56 IPC_MESSAGE_ROUTED1(DevToolsClientMsg_DispatchOnInspectorFrontend, |
| 57 std::string /* message */) | 57 std::string /* message */) |
| 58 | 58 |
| 59 // Legacy debugger output message. | |
| 60 IPC_MESSAGE_ROUTED1(DevToolsClientMsg_DebuggerOutput, | |
| 61 std::string /* message */) | |
| 62 | |
| 63 | |
| 64 //----------------------------------------------------------------------------- | 59 //----------------------------------------------------------------------------- |
| 65 // These are messages sent from DevToolsClient to DevToolsAgent through the | 60 // These are messages sent from DevToolsClient to DevToolsAgent through the |
| 66 // browser. | 61 // browser. |
| 67 // Tells agent that there is a client host connected to it. | 62 // Tells agent that there is a client host connected to it. |
| 68 IPC_MESSAGE_ROUTED0(DevToolsAgentMsg_Attach) | 63 IPC_MESSAGE_ROUTED0(DevToolsAgentMsg_Attach) |
| 69 | 64 |
| 70 // Tells agent that a client host was disconnected from another agent and | 65 // Tells agent that a client host was disconnected from another agent and |
| 71 // connected to this one. | 66 // connected to this one. |
| 72 IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_Reattach, | 67 IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_Reattach, |
| 73 std::string /* agent_state */) | 68 std::string /* agent_state */) |
| 74 | 69 |
| 75 // Tells agent that there is no longer a client host connected to it. | 70 // Tells agent that there is no longer a client host connected to it. |
| 76 IPC_MESSAGE_ROUTED0(DevToolsAgentMsg_Detach) | 71 IPC_MESSAGE_ROUTED0(DevToolsAgentMsg_Detach) |
| 77 | 72 |
| 78 // Tells agent that the front-end has been loaded | 73 // Tells agent that the front-end has been loaded |
| 79 IPC_MESSAGE_ROUTED0(DevToolsAgentMsg_FrontendLoaded) | 74 IPC_MESSAGE_ROUTED0(DevToolsAgentMsg_FrontendLoaded) |
| 80 | 75 |
| 81 // WebKit-level transport. | 76 // WebKit-level transport. |
| 82 IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_DispatchOnInspectorBackend, | 77 IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_DispatchOnInspectorBackend, |
| 83 std::string /* message */) | 78 std::string /* message */) |
| 84 | 79 |
| 85 // Send debugger command to the debugger agent. Debugger commands should | |
| 86 // 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 | |
| 88 // breakpoint. | |
| 89 IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_DebuggerCommand, | |
| 90 std::string /* command */) | |
| 91 | |
| 92 // Inspect element with the given coordinates. | 80 // Inspect element with the given coordinates. |
| 93 IPC_MESSAGE_ROUTED2(DevToolsAgentMsg_InspectElement, | 81 IPC_MESSAGE_ROUTED2(DevToolsAgentMsg_InspectElement, |
| 94 int /* x */, | 82 int /* x */, |
| 95 int /* y */) | 83 int /* y */) |
| 96 | 84 |
| 97 // Notifies worker devtools agent that it should pause worker context | 85 // Notifies worker devtools agent that it should pause worker context |
| 98 // when it starts and wait until either DevTools client is attached or | 86 // when it starts and wait until either DevTools client is attached or |
| 99 // explicit resume notification is received. | 87 // explicit resume notification is received. |
| 100 IPC_MESSAGE_ROUTED0(DevToolsAgentMsg_PauseWorkerContextOnStart) | 88 IPC_MESSAGE_ROUTED0(DevToolsAgentMsg_PauseWorkerContextOnStart) |
| 101 | 89 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 // Clears browser cache. | 143 // Clears browser cache. |
| 156 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_ClearBrowserCache) | 144 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_ClearBrowserCache) |
| 157 | 145 |
| 158 // Clears browser cookies. | 146 // Clears browser cookies. |
| 159 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_ClearBrowserCookies) | 147 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_ClearBrowserCookies) |
| 160 | 148 |
| 161 | 149 |
| 162 //----------------------------------------------------------------------------- | 150 //----------------------------------------------------------------------------- |
| 163 // These are messages sent from the inspected page renderer to the worker | 151 // These are messages sent from the inspected page renderer to the worker |
| 164 // renderer. | 152 // renderer. |
| OLD | NEW |