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

Unified Diff: content/browser/devtools/protocol/system_info_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/system_info_handler.h
diff --git a/content/browser/devtools/protocol/system_info_handler.h b/content/browser/devtools/protocol/system_info_handler.h
index 8131c9e2d083e247a86f5ca3734b37cf25d7314a..b9dc5b694a605c5559063a7b0e9b6ecdc25d8a1e 100644
--- a/content/browser/devtools/protocol/system_info_handler.h
+++ b/content/browser/devtools/protocol/system_info_handler.h
@@ -24,17 +24,19 @@ class SystemInfoHandler {
void SetClient(scoped_ptr<Client> client);
- Response GetInfo(DevToolsCommandId command_id);
+ Response GetInfo(int session_id, DevToolsCommandId command_id);
private:
friend class SystemInfoHandlerGpuObserver;
- void SendGetInfoResponse(DevToolsCommandId command_id);
+ void SendGetInfoResponse(int session_id, DevToolsCommandId command_id);
// Bookkeeping for the active GpuObservers.
void AddActiveObserverId(int observer_id);
bool RemoveActiveObserverId(int observer_id);
- void ObserverWatchdogCallback(int observer_id, DevToolsCommandId command_id);
+ void ObserverWatchdogCallback(int observer_id,
+ int session_id,
+ DevToolsCommandId command_id);
// For robustness, we have to guarantee a response to getInfo requests.
// It's very unlikely that the requests will time out. The

Powered by Google App Engine
This is Rietveld 408576698