The agent can be retrieve from the corresponding InspectorController on the Page and there is no need in additional map. Also there is no page in case of worker threads.
Created attachment 82841 [details] Patch
Attachment 82841 [details] did not build on chromium: Build output: http://queues.webkit.org/results/7920835
Created attachment 82845 [details] Patch
Comment on attachment 82845 [details] Patch I don't see why this change is necessary.
Created attachment 103340 [details] Patch
Comment on attachment 103340 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=103340&action=review > Source/WebCore/inspector/InstrumentingAgents.h:171 > +InstrumentingAgents* instrumentationForWorkerContext(WorkerContext*); Looks good overall. It is not clear what the call sites are going to look like. Do you have a clue?
Committed r92677: <http://trac.webkit.org/changeset/92677>