OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 25 matching lines...) Expand all Loading... |
36 #include "core/inspector/InspectorCSSAgent.h" | 36 #include "core/inspector/InspectorCSSAgent.h" |
37 #include "core/inspector/InspectorConsoleAgent.h" | 37 #include "core/inspector/InspectorConsoleAgent.h" |
38 #include "core/inspector/InspectorController.h" | 38 #include "core/inspector/InspectorController.h" |
39 #include "core/inspector/InspectorDebuggerAgent.h" | 39 #include "core/inspector/InspectorDebuggerAgent.h" |
40 #include "core/inspector/InspectorInspectorAgent.h" | 40 #include "core/inspector/InspectorInspectorAgent.h" |
41 #include "core/inspector/InspectorProfilerAgent.h" | 41 #include "core/inspector/InspectorProfilerAgent.h" |
42 #include "core/inspector/InspectorResourceAgent.h" | 42 #include "core/inspector/InspectorResourceAgent.h" |
43 #include "core/inspector/InspectorTimelineAgent.h" | 43 #include "core/inspector/InspectorTimelineAgent.h" |
44 #include "core/inspector/InstrumentingAgents.h" | 44 #include "core/inspector/InstrumentingAgents.h" |
45 #include "core/inspector/WorkerInspectorController.h" | 45 #include "core/inspector/WorkerInspectorController.h" |
| 46 #include "core/page/Page.h" |
46 #include "core/workers/WorkerGlobalScope.h" | 47 #include "core/workers/WorkerGlobalScope.h" |
47 | 48 |
48 namespace WebCore { | 49 namespace WebCore { |
49 | 50 |
50 namespace { | 51 namespace { |
51 static HashSet<InstrumentingAgents*>* instrumentingAgentsSet = 0; | 52 static HashSet<InstrumentingAgents*>* instrumentingAgentsSet = 0; |
52 } | 53 } |
53 | 54 |
54 namespace InspectorInstrumentation { | 55 namespace InspectorInstrumentation { |
55 int FrontendCounter::s_frontendCounter = 0; | 56 int FrontendCounter::s_frontendCounter = 0; |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 | 259 |
259 InstrumentingAgents* instrumentationForWorkerGlobalScope(WorkerGlobalScope* work
erGlobalScope) | 260 InstrumentingAgents* instrumentationForWorkerGlobalScope(WorkerGlobalScope* work
erGlobalScope) |
260 { | 261 { |
261 if (WorkerInspectorController* controller = workerGlobalScope->workerInspect
orController()) | 262 if (WorkerInspectorController* controller = workerGlobalScope->workerInspect
orController()) |
262 return controller->m_instrumentingAgents.get(); | 263 return controller->m_instrumentingAgents.get(); |
263 return 0; | 264 return 0; |
264 } | 265 } |
265 | 266 |
266 } // namespace WebCore | 267 } // namespace WebCore |
267 | 268 |
OLD | NEW |