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

Unified Diff: content/renderer/devtools/devtools_agent.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/content_browser.gypi ('k') | content/renderer/devtools/devtools_agent.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/devtools/devtools_agent.h
diff --git a/content/renderer/devtools/devtools_agent.h b/content/renderer/devtools/devtools_agent.h
index cbdccd56ecbe5ed93468a7b756246be4963141ce..f4163d7ace7a4fd09a978c88c5df564ecd71b2c4 100644
--- a/content/renderer/devtools/devtools_agent.h
+++ b/content/renderer/devtools/devtools_agent.h
@@ -33,12 +33,12 @@ class CONTENT_EXPORT DevToolsAgent
// Returns agent instance for its routing id.
static DevToolsAgent* FromRoutingId(int routing_id);
- static void SendChunkedProtocolMessage(
- IPC::Sender* sender,
- int routing_id,
- int call_id,
- const std::string& message,
- const std::string& post_state);
+ static void SendChunkedProtocolMessage(IPC::Sender* sender,
+ int routing_id,
+ int session_id,
+ int call_id,
+ const std::string& message,
+ const std::string& post_state);
blink::WebDevToolsAgent* GetWebAgent();
@@ -55,7 +55,8 @@ class CONTENT_EXPORT DevToolsAgent
void WidgetWillClose() override;
// WebDevToolsAgentClient implementation.
- void sendProtocolMessage(int call_id,
+ void sendProtocolMessage(int session_id,
+ int call_id,
const blink::WebString& response,
const blink::WebString& state) override;
blink::WebDevToolsAgentClient::WebKitClientMessageLoop*
@@ -66,11 +67,12 @@ class CONTENT_EXPORT DevToolsAgent
void enableTracing(const blink::WebString& category_filter) override;
void disableTracing() override;
- void OnAttach(const std::string& host_id);
+ void OnAttach(const std::string& host_id, int session_id);
void OnReattach(const std::string& host_id,
+ int session_id,
const std::string& agent_state);
void OnDetach();
- void OnDispatchOnInspectorBackend(const std::string& message);
+ void OnDispatchOnInspectorBackend(int session_id, const std::string& message);
void OnInspectElement(int x, int y);
void ContinueProgram();
void OnSetupDevToolsClient(const std::string& compatibility_script);
« no previous file with comments | « content/content_browser.gypi ('k') | content/renderer/devtools/devtools_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698