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

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

Issue 1437993003: Revert of [DevTools] Filter any messages from previous sessions in DevToolsAgentHostImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « content/child/shared_worker_devtools_agent.cc ('k') | content/content_browser.gypi » ('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 // 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 51 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
52 52
53 #define IPC_MESSAGE_START DevToolsMsgStart 53 #define IPC_MESSAGE_START DevToolsMsgStart
54 54
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 57
58 // Agent -> Client message chunk. 58 // Agent -> Client message chunk.
59 // |is_first| marks the first chunk, comes with the |message_size| for 59 // |is_first| marks the first chunk, comes with the |message_size| for
60 // total message size. 60 // total message size.
61 // |is_last| marks the last chunk. |call_id|, |session_id| and |post_state| 61 // |is_last| marks the last chunk. |call_id| and |post_state| are optional
62 // are optional parameters passed with the last chunk of the protocol 62 // parameters passed with the last chunk of the protocol response.
63 // response.
64 IPC_STRUCT_BEGIN(DevToolsMessageChunk) 63 IPC_STRUCT_BEGIN(DevToolsMessageChunk)
65 IPC_STRUCT_MEMBER(bool, is_first) 64 IPC_STRUCT_MEMBER(bool, is_first)
66 IPC_STRUCT_MEMBER(bool, is_last) 65 IPC_STRUCT_MEMBER(bool, is_last)
67 IPC_STRUCT_MEMBER(int, message_size) 66 IPC_STRUCT_MEMBER(int, message_size)
68 IPC_STRUCT_MEMBER(int, session_id)
69 IPC_STRUCT_MEMBER(int, call_id) 67 IPC_STRUCT_MEMBER(int, call_id)
70 IPC_STRUCT_MEMBER(std::string, data) 68 IPC_STRUCT_MEMBER(std::string, data)
71 IPC_STRUCT_MEMBER(std::string, post_state) 69 IPC_STRUCT_MEMBER(std::string, post_state)
72 IPC_STRUCT_END() 70 IPC_STRUCT_END()
73 71
74 // Sends response from the agent to the client. Supports chunked encoding. 72 // Sends response from the agent to the client. Supports chunked encoding.
75 IPC_MESSAGE_ROUTED1(DevToolsClientMsg_DispatchOnInspectorFrontend, 73 IPC_MESSAGE_ROUTED1(DevToolsClientMsg_DispatchOnInspectorFrontend,
76 DevToolsMessageChunk /* message */) 74 DevToolsMessageChunk /* message */)
77 75
78 //----------------------------------------------------------------------------- 76 //-----------------------------------------------------------------------------
79 // These are messages sent from DevToolsClient to DevToolsAgent through the 77 // These are messages sent from DevToolsClient to DevToolsAgent through the
80 // browser. 78 // browser.
81 // Tells agent that there is a client host connected to it. 79 // Tells agent that there is a client host connected to it.
82 IPC_MESSAGE_ROUTED2(DevToolsAgentMsg_Attach, 80 IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_Attach,
83 std::string /* host_id */, 81 std::string /* host_id */)
84 int /* session_id */)
85 82
86 // Tells agent that a client host was disconnected from another agent and 83 // Tells agent that a client host was disconnected from another agent and
87 // connected to this one. 84 // connected to this one.
88 IPC_MESSAGE_ROUTED3(DevToolsAgentMsg_Reattach, 85 IPC_MESSAGE_ROUTED2(DevToolsAgentMsg_Reattach,
89 std::string /* host_id */, 86 std::string /* host_id */,
90 int /* session_id */,
91 std::string /* agent_state */) 87 std::string /* agent_state */)
92 88
93 // Tells agent that there is no longer a client host connected to it. 89 // Tells agent that there is no longer a client host connected to it.
94 IPC_MESSAGE_ROUTED0(DevToolsAgentMsg_Detach) 90 IPC_MESSAGE_ROUTED0(DevToolsAgentMsg_Detach)
95 91
96 // WebKit-level transport. 92 // WebKit-level transport.
97 IPC_MESSAGE_ROUTED2(DevToolsAgentMsg_DispatchOnInspectorBackend, 93 IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_DispatchOnInspectorBackend,
98 int /* session_id */,
99 std::string /* message */) 94 std::string /* message */)
100 95
101 // Inspect element with the given coordinates. 96 // Inspect element with the given coordinates.
102 IPC_MESSAGE_ROUTED4(DevToolsAgentMsg_InspectElement, 97 IPC_MESSAGE_ROUTED3(DevToolsAgentMsg_InspectElement,
103 std::string /* host_id */, 98 std::string /* host_id */,
104 int /* session_id */,
105 int /* x */, 99 int /* x */,
106 int /* y */) 100 int /* y */)
107 101
108 //----------------------------------------------------------------------------- 102 //-----------------------------------------------------------------------------
109 // These are messages sent from the browser to the renderer. 103 // These are messages sent from the browser to the renderer.
110 104
111 // RenderViewHostDelegate::RenderViewCreated method sends this message to a 105 // RenderViewHostDelegate::RenderViewCreated method sends this message to a
112 // new renderer to notify it that it will host developer tools UI and should 106 // new renderer to notify it that it will host developer tools UI and should
113 // set up all neccessary bindings and create DevToolsClient instance that 107 // set up all neccessary bindings and create DevToolsClient instance that
114 // will handle communication with inspected page DevToolsAgent. 108 // will handle communication with inspected page DevToolsAgent.
115 IPC_MESSAGE_ROUTED1(DevToolsMsg_SetupDevToolsClient, 109 IPC_MESSAGE_ROUTED1(DevToolsMsg_SetupDevToolsClient,
116 std::string /* compatibility script */) 110 std::string /* compatibility script */)
117 111
118 112
119 //----------------------------------------------------------------------------- 113 //-----------------------------------------------------------------------------
120 // These are messages sent from the renderer to the browser. 114 // These are messages sent from the renderer to the browser.
121 115
122 // Transport from Inspector frontend to frontend host. 116 // Transport from Inspector frontend to frontend host.
123 IPC_MESSAGE_ROUTED1(DevToolsHostMsg_DispatchOnEmbedder, 117 IPC_MESSAGE_ROUTED1(DevToolsHostMsg_DispatchOnEmbedder,
124 std::string /* message */) 118 std::string /* message */)
OLDNEW
« no previous file with comments | « content/child/shared_worker_devtools_agent.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698