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

Side by Side Diff: content/common/devtools_messages.h

Issue 341513002: DevTools: pass agent host id to the renderer (content). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Same w/ reattach. Created 6 years, 6 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 // 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // These are messages sent from DevToolsAgent to DevToolsClient through the 55 // These are messages sent from DevToolsAgent to DevToolsClient through the
56 // browser. 56 // browser.
57 // WebKit-level transport. 57 // WebKit-level transport.
58 IPC_MESSAGE_ROUTED1(DevToolsClientMsg_DispatchOnInspectorFrontend, 58 IPC_MESSAGE_ROUTED1(DevToolsClientMsg_DispatchOnInspectorFrontend,
59 std::string /* message */) 59 std::string /* message */)
60 60
61 //----------------------------------------------------------------------------- 61 //-----------------------------------------------------------------------------
62 // These are messages sent from DevToolsClient to DevToolsAgent through the 62 // These are messages sent from DevToolsClient to DevToolsAgent through the
63 // browser. 63 // browser.
64 // Tells agent that there is a client host connected to it. 64 // Tells agent that there is a client host connected to it.
65 IPC_MESSAGE_ROUTED0(DevToolsAgentMsg_Attach) 65 IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_Attach,
66 std::string /* host_id */)
66 67
67 // Tells agent that a client host was disconnected from another agent and 68 // Tells agent that a client host was disconnected from another agent and
68 // connected to this one. 69 // connected to this one.
69 IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_Reattach, 70 IPC_MESSAGE_ROUTED2(DevToolsAgentMsg_Reattach,
71 std::string /* host_id */,
70 std::string /* agent_state */) 72 std::string /* agent_state */)
71 73
72 // Tells agent that there is no longer a client host connected to it. 74 // Tells agent that there is no longer a client host connected to it.
73 IPC_MESSAGE_ROUTED0(DevToolsAgentMsg_Detach) 75 IPC_MESSAGE_ROUTED0(DevToolsAgentMsg_Detach)
74 76
75 // WebKit-level transport. 77 // WebKit-level transport.
76 IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_DispatchOnInspectorBackend, 78 IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_DispatchOnInspectorBackend,
77 std::string /* message */) 79 std::string /* message */)
78 80
79 // Inspect element with the given coordinates. 81 // Inspect element with the given coordinates.
80 IPC_MESSAGE_ROUTED2(DevToolsAgentMsg_InspectElement, 82 IPC_MESSAGE_ROUTED3(DevToolsAgentMsg_InspectElement,
83 std::string /* host_id */,
81 int /* x */, 84 int /* x */,
82 int /* y */) 85 int /* y */)
83 86
84 // Add message to the devtools console. 87 // Add message to the devtools console.
85 IPC_MESSAGE_ROUTED2(DevToolsAgentMsg_AddMessageToConsole, 88 IPC_MESSAGE_ROUTED2(DevToolsAgentMsg_AddMessageToConsole,
86 content::ConsoleMessageLevel /* level */, 89 content::ConsoleMessageLevel /* level */,
87 std::string /* message */) 90 std::string /* message */)
88 91
89 // Worker DevTools agent should resume worker execution. 92 // Worker DevTools agent should resume worker execution.
90 IPC_MESSAGE_ROUTED0(DevToolsAgentMsg_ResumeWorkerContext) 93 IPC_MESSAGE_ROUTED0(DevToolsAgentMsg_ResumeWorkerContext)
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 IPC_STRUCT_MEMBER(uint64, gpu_memory_limit_bytes) 125 IPC_STRUCT_MEMBER(uint64, gpu_memory_limit_bytes)
123 IPC_STRUCT_END() 126 IPC_STRUCT_END()
124 127
125 // Recorded events are passed in chunks to the renderer process. 128 // Recorded events are passed in chunks to the renderer process.
126 IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_GpuTasksChunk, 129 IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_GpuTasksChunk,
127 std::vector<GpuTaskInfo> /* gpu_tasks */) 130 std::vector<GpuTaskInfo> /* gpu_tasks */)
128 131
129 //----------------------------------------------------------------------------- 132 //-----------------------------------------------------------------------------
130 // These are messages sent from the inspected page renderer to the worker 133 // These are messages sent from the inspected page renderer to the worker
131 // renderer. 134 // renderer.
OLDNEW
« no previous file with comments | « content/child/shared_worker_devtools_agent.cc ('k') | content/renderer/devtools/devtools_agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698