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

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

Issue 1408363004: [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
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| and |post_state| are optional 61 // |is_last| marks the last chunk. |call_id| and |post_state| are optional
dgozman 2015/11/06 22:57:27 |call_id|, |session_id| and ...
kozy 2015/11/07 01:54:44 Done.
62 // parameters passed with the last chunk of the protocol response. 62 // parameters passed with the last chunk of the protocol response.
63 IPC_STRUCT_BEGIN(DevToolsMessageChunk) 63 IPC_STRUCT_BEGIN(DevToolsMessageChunk)
64 IPC_STRUCT_MEMBER(bool, is_first) 64 IPC_STRUCT_MEMBER(bool, is_first)
65 IPC_STRUCT_MEMBER(bool, is_last) 65 IPC_STRUCT_MEMBER(bool, is_last)
66 IPC_STRUCT_MEMBER(int, message_size) 66 IPC_STRUCT_MEMBER(int, message_size)
67 IPC_STRUCT_MEMBER(int, session_id)
67 IPC_STRUCT_MEMBER(int, call_id) 68 IPC_STRUCT_MEMBER(int, call_id)
68 IPC_STRUCT_MEMBER(std::string, data) 69 IPC_STRUCT_MEMBER(std::string, data)
69 IPC_STRUCT_MEMBER(std::string, post_state) 70 IPC_STRUCT_MEMBER(std::string, post_state)
70 IPC_STRUCT_END() 71 IPC_STRUCT_END()
71 72
72 // Sends response from the agent to the client. Supports chunked encoding. 73 // Sends response from the agent to the client. Supports chunked encoding.
73 IPC_MESSAGE_ROUTED1(DevToolsClientMsg_DispatchOnInspectorFrontend, 74 IPC_MESSAGE_ROUTED1(DevToolsClientMsg_DispatchOnInspectorFrontend,
74 DevToolsMessageChunk /* message */) 75 DevToolsMessageChunk /* message */)
75 76
76 //----------------------------------------------------------------------------- 77 //-----------------------------------------------------------------------------
77 // These are messages sent from DevToolsClient to DevToolsAgent through the 78 // These are messages sent from DevToolsClient to DevToolsAgent through the
78 // browser. 79 // browser.
79 // Tells agent that there is a client host connected to it. 80 // Tells agent that there is a client host connected to it.
80 IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_Attach, 81 IPC_MESSAGE_ROUTED2(DevToolsAgentMsg_Attach,
81 std::string /* host_id */) 82 std::string /* host_id */,
83 int /* session_id */)
82 84
83 // Tells agent that a client host was disconnected from another agent and 85 // Tells agent that a client host was disconnected from another agent and
84 // connected to this one. 86 // connected to this one.
85 IPC_MESSAGE_ROUTED2(DevToolsAgentMsg_Reattach, 87 IPC_MESSAGE_ROUTED3(DevToolsAgentMsg_Reattach,
86 std::string /* host_id */, 88 std::string /* host_id */,
89 int /* session_id */,
87 std::string /* agent_state */) 90 std::string /* agent_state */)
88 91
89 // Tells agent that there is no longer a client host connected to it. 92 // Tells agent that there is no longer a client host connected to it.
90 IPC_MESSAGE_ROUTED0(DevToolsAgentMsg_Detach) 93 IPC_MESSAGE_ROUTED0(DevToolsAgentMsg_Detach)
91 94
92 // WebKit-level transport. 95 // WebKit-level transport.
93 IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_DispatchOnInspectorBackend, 96 IPC_MESSAGE_ROUTED2(DevToolsAgentMsg_DispatchOnInspectorBackend,
97 int /* session_id */,
94 std::string /* message */) 98 std::string /* message */)
95 99
96 // Inspect element with the given coordinates. 100 // Inspect element with the given coordinates.
97 IPC_MESSAGE_ROUTED3(DevToolsAgentMsg_InspectElement, 101 IPC_MESSAGE_ROUTED4(DevToolsAgentMsg_InspectElement,
98 std::string /* host_id */, 102 std::string /* host_id */,
103 int /* session_id */,
99 int /* x */, 104 int /* x */,
100 int /* y */) 105 int /* y */)
101 106
102 //----------------------------------------------------------------------------- 107 //-----------------------------------------------------------------------------
103 // These are messages sent from the browser to the renderer. 108 // These are messages sent from the browser to the renderer.
104 109
105 // RenderViewHostDelegate::RenderViewCreated method sends this message to a 110 // RenderViewHostDelegate::RenderViewCreated method sends this message to a
106 // new renderer to notify it that it will host developer tools UI and should 111 // new renderer to notify it that it will host developer tools UI and should
107 // set up all neccessary bindings and create DevToolsClient instance that 112 // set up all neccessary bindings and create DevToolsClient instance that
108 // will handle communication with inspected page DevToolsAgent. 113 // will handle communication with inspected page DevToolsAgent.
109 IPC_MESSAGE_ROUTED1(DevToolsMsg_SetupDevToolsClient, 114 IPC_MESSAGE_ROUTED1(DevToolsMsg_SetupDevToolsClient,
110 std::string /* compatibility script */) 115 std::string /* compatibility script */)
111 116
112 117
113 //----------------------------------------------------------------------------- 118 //-----------------------------------------------------------------------------
114 // These are messages sent from the renderer to the browser. 119 // These are messages sent from the renderer to the browser.
115 120
116 // Transport from Inspector frontend to frontend host. 121 // Transport from Inspector frontend to frontend host.
117 IPC_MESSAGE_ROUTED1(DevToolsHostMsg_DispatchOnEmbedder, 122 IPC_MESSAGE_ROUTED1(DevToolsHostMsg_DispatchOnEmbedder,
118 std::string /* message */) 123 std::string /* message */)
124
125 IPC_MESSAGE_ROUTED1(DevToolsHostMsg_DispatchOnInspectorBackend,
dgozman 2015/11/06 22:57:27 Remove it.
kozy 2015/11/07 01:54:44 Done.
126 std::string /* message */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698