Index: Source/core/inspector/InspectorWorkerAgent.h |
diff --git a/Source/core/inspector/InspectorWorkerAgent.h b/Source/core/inspector/InspectorWorkerAgent.h |
index bd75b47d5a5035fd98e269ea224988f57784eeb5..2101f4affdb4f5e4d4f303f287ee6f808407e140 100644 |
--- a/Source/core/inspector/InspectorWorkerAgent.h |
+++ b/Source/core/inspector/InspectorWorkerAgent.h |
@@ -72,17 +72,25 @@ public: |
private: |
InspectorWorkerAgent(); |
void createWorkerFrontendChannelsForExistingWorkers(); |
- void createWorkerFrontendChannel(WorkerInspectorProxy*, const String& url); |
+ void createWorkerFrontendChannel(WorkerInspectorProxy*, const String& url, int id); |
void destroyWorkerFrontendChannels(); |
InspectorFrontend::Worker* m_frontend; |
+ class WorkerInfo { |
yurys
2014/11/17 12:51:36
Please move definition of the class into the .cpp
alph
2014/11/17 13:36:12
I can't. HashMap below has a by-value use.
|
+ public: |
+ WorkerInfo() : id(0) { } |
+ WorkerInfo(const String& url, int id) : url(url), id(id) { } |
+ String url; |
+ int id; |
+ }; |
class WorkerFrontendChannel; |
typedef HashMap<int, WorkerFrontendChannel*> WorkerChannels; |
WorkerChannels m_idToChannel; |
- typedef HashMap<WorkerInspectorProxy*, String> WorkerIds; |
- WorkerIds m_workerIds; |
+ typedef HashMap<WorkerInspectorProxy*, WorkerInfo> WorkerInfos; |
+ WorkerInfos m_workerInfos; |
String m_tracingSessionId; |
+ int m_nextId; |
}; |
} // namespace blink |