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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorWorkerAgent.h

Issue 2951913002: [DevTools] Support multiple sessions in Target domain (Closed)
Patch Set: simplify Created 3 years, 6 months 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: third_party/WebKit/Source/core/inspector/InspectorWorkerAgent.h
diff --git a/third_party/WebKit/Source/core/inspector/InspectorWorkerAgent.h b/third_party/WebKit/Source/core/inspector/InspectorWorkerAgent.h
index e7a4ce7f9625691a3e7a5bb7144002f3ace15995..48a426ea2532b152928cb3ed2c60062ed83b3f38 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorWorkerAgent.h
+++ b/third_party/WebKit/Source/core/inspector/InspectorWorkerAgent.h
@@ -65,7 +65,7 @@ class CORE_EXPORT InspectorWorkerAgent final
protocol::Response setAutoAttach(bool auto_attach,
bool wait_for_debugger_on_start) override;
protocol::Response setAttachToFrames(bool attach) override;
- protocol::Response sendMessageToTarget(const String& target_id,
+ protocol::Response sendMessageToTarget(const String& session_id,
const String& message) override;
void SetTracingSessionId(const String&);
@@ -75,7 +75,7 @@ class CORE_EXPORT InspectorWorkerAgent final
void ConnectToAllProxies();
void DisconnectFromAllProxies(bool report_to_frontend);
void ConnectToProxy(WorkerInspectorProxy*, bool waiting_for_debugger);
- protocol::DictionaryValue* AttachedWorkerIds();
+ protocol::DictionaryValue* AttachedProtocolIds();
// WorkerInspectorProxy::PageInspector implementation.
void DispatchMessageFromWorker(WorkerInspectorProxy*,
@@ -83,8 +83,11 @@ class CORE_EXPORT InspectorWorkerAgent final
const String& message) override;
Member<InspectedFrames> inspected_frames_;
- HeapHashMap<String, Member<WorkerInspectorProxy>> connected_proxies_;
+ HeapHashMap<int, Member<WorkerInspectorProxy>> connected_proxies_;
+ HashMap<String, int> protocol_to_session_id_;
+ HashMap<int, String> session_to_protocol_id_;
String tracing_session_id_;
+ static int last_session_id_;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698