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

Unified Diff: content/common/devtools_messages.h

Issue 1437283003: [DevTools] filter any messages from previous session 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/devtools_messages.h
diff --git a/content/common/devtools_messages.h b/content/common/devtools_messages.h
index f786a651ea9310f5ddcba85feeba202aa4a649da..7edc617df966350505c054b3675fad3d0289d74c 100644
--- a/content/common/devtools_messages.h
+++ b/content/common/devtools_messages.h
@@ -58,12 +58,14 @@
// Agent -> Client message chunk.
// |is_first| marks the first chunk, comes with the |message_size| for
// total message size.
-// |is_last| marks the last chunk. |call_id| and |post_state| are optional
-// parameters passed with the last chunk of the protocol response.
+// |is_last| marks the last chunk. |call_id|, |session_id| and |post_state|
+// are optional parameters passed with the last chunk of the protocol
+// response.
IPC_STRUCT_BEGIN(DevToolsMessageChunk)
IPC_STRUCT_MEMBER(bool, is_first)
IPC_STRUCT_MEMBER(bool, is_last)
IPC_STRUCT_MEMBER(int, message_size)
+ IPC_STRUCT_MEMBER(int, session_id)
IPC_STRUCT_MEMBER(int, call_id)
IPC_STRUCT_MEMBER(std::string, data)
IPC_STRUCT_MEMBER(std::string, post_state)
@@ -77,20 +79,23 @@ IPC_MESSAGE_ROUTED1(DevToolsClientMsg_DispatchOnInspectorFrontend,
// These are messages sent from DevToolsClient to DevToolsAgent through the
// browser.
// Tells agent that there is a client host connected to it.
-IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_Attach,
- std::string /* host_id */)
+IPC_MESSAGE_ROUTED2(DevToolsAgentMsg_Attach,
+ std::string /* host_id */,
+ int /* session_id */)
// Tells agent that a client host was disconnected from another agent and
// connected to this one.
-IPC_MESSAGE_ROUTED2(DevToolsAgentMsg_Reattach,
+IPC_MESSAGE_ROUTED3(DevToolsAgentMsg_Reattach,
std::string /* host_id */,
+ int /* session_id */,
std::string /* agent_state */)
// Tells agent that there is no longer a client host connected to it.
IPC_MESSAGE_ROUTED0(DevToolsAgentMsg_Detach)
// WebKit-level transport.
-IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_DispatchOnInspectorBackend,
+IPC_MESSAGE_ROUTED2(DevToolsAgentMsg_DispatchOnInspectorBackend,
+ int /* session_id */,
std::string /* message */)
// Inspect element with the given coordinates.
« 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