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

Unified Diff: content/browser/devtools/protocol/tethering_handler.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 side-by-side diff with in-line comments
Download patch
Index: content/browser/devtools/protocol/tethering_handler.h
diff --git a/content/browser/devtools/protocol/tethering_handler.h b/content/browser/devtools/protocol/tethering_handler.h
index 21f1a9a27a6050371d5b606f7f5a1a7f7e389162..fe0f9e039b63b0cc65ce6660eb8acd2ce84ff58f 100644
--- a/content/browser/devtools/protocol/tethering_handler.h
+++ b/content/browser/devtools/protocol/tethering_handler.h
@@ -29,8 +29,8 @@ class TetheringHandler {
void SetClient(scoped_ptr<Client> client);
- Response Bind(DevToolsCommandId command_id, int port);
- Response Unbind(DevToolsCommandId command_id, int port);
+ Response Bind(int session_id, DevToolsCommandId command_id, int port);
+ Response Unbind(int session_id, DevToolsCommandId command_id, int port);
private:
class TetheringImpl;
@@ -38,9 +38,10 @@ class TetheringHandler {
void Accepted(uint16 port, const std::string& name);
bool Activate();
- void SendBindSuccess(DevToolsCommandId command_id);
- void SendUnbindSuccess(DevToolsCommandId command_id);
- void SendInternalError(DevToolsCommandId command_id,
+ void SendBindSuccess(int session_id, DevToolsCommandId command_id);
+ void SendUnbindSuccess(int session_id, DevToolsCommandId command_id);
+ void SendInternalError(int session_id,
+ DevToolsCommandId command_id,
const std::string& message);
scoped_ptr<Client> client_;

Powered by Google App Engine
This is Rietveld 408576698