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

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

Issue 724013003: DevTools: Connect worker cpu profiles to worker tracing threads. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressing comments. Created 6 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: 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

Powered by Google App Engine
This is Rietveld 408576698