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]
Attachment 82841 [details] did not build on chromium:
Build output: http://queues.webkit.org/results/7920835
Created attachment 82845 [details]
Comment on attachment 82845 [details]
I don't see why this change is necessary.
Created attachment 103340 [details]
Comment on attachment 103340 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=103340&action=review
> +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>