| 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 12 matching lines...) Expand all Loading... |
| 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "core/inspector/InspectorInstrumentation.h" | 31 #include "core/inspector/InspectorInstrumentation.h" |
| 32 | 32 |
| 33 #include "core/InstrumentingAgents.h" | 33 #include "core/InspectorInstrumentationAgents.h" |
| 34 #include "core/events/Event.h" | 34 #include "core/events/Event.h" |
| 35 #include "core/events/EventTarget.h" | 35 #include "core/events/EventTarget.h" |
| 36 #include "core/frame/FrameHost.h" | 36 #include "core/frame/FrameHost.h" |
| 37 #include "core/inspector/InspectorCSSAgent.h" | 37 #include "core/inspector/InspectorCSSAgent.h" |
| 38 #include "core/inspector/InspectorDOMDebuggerAgent.h" | 38 #include "core/inspector/InspectorDOMDebuggerAgent.h" |
| 39 #include "core/inspector/InspectorNetworkAgent.h" | 39 #include "core/inspector/InspectorNetworkAgent.h" |
| 40 #include "core/inspector/InspectorPageAgent.h" | 40 #include "core/inspector/InspectorPageAgent.h" |
| 41 #include "core/inspector/InspectorSession.h" | 41 #include "core/inspector/InspectorSession.h" |
| 42 #include "core/inspector/InspectorTraceEvents.h" | 42 #include "core/inspector/InspectorTraceEvents.h" |
| 43 #include "core/inspector/MainThreadDebugger.h" | 43 #include "core/inspector/MainThreadDebugger.h" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 } | 151 } |
| 152 | 152 |
| 153 void continueWithPolicyIgnore(LocalFrame* frame, | 153 void continueWithPolicyIgnore(LocalFrame* frame, |
| 154 DocumentLoader* loader, | 154 DocumentLoader* loader, |
| 155 unsigned long identifier, | 155 unsigned long identifier, |
| 156 const ResourceResponse& r, | 156 const ResourceResponse& r, |
| 157 Resource* resource) { | 157 Resource* resource) { |
| 158 didReceiveResourceResponseButCanceled(frame, loader, identifier, r, resource); | 158 didReceiveResourceResponseButCanceled(frame, loader, identifier, r, resource); |
| 159 } | 159 } |
| 160 | 160 |
| 161 InstrumentingAgents* instrumentingAgentsFor( | 161 InspectorInstrumentationAgents* instrumentingAgentsFor( |
| 162 WorkerGlobalScope* workerGlobalScope) { | 162 WorkerGlobalScope* workerGlobalScope) { |
| 163 if (!workerGlobalScope) | 163 if (!workerGlobalScope) |
| 164 return nullptr; | 164 return nullptr; |
| 165 if (WorkerInspectorController* controller = | 165 if (WorkerInspectorController* controller = |
| 166 workerGlobalScope->thread()->workerInspectorController()) | 166 workerGlobalScope->thread()->workerInspectorController()) |
| 167 return controller->instrumentingAgents(); | 167 return controller->instrumentingAgents(); |
| 168 return nullptr; | 168 return nullptr; |
| 169 } | 169 } |
| 170 | 170 |
| 171 InstrumentingAgents* instrumentingAgentsForNonDocumentContext( | 171 InspectorInstrumentationAgents* instrumentingAgentsForNonDocumentContext( |
| 172 ExecutionContext* context) { | 172 ExecutionContext* context) { |
| 173 if (context->isWorkerGlobalScope()) | 173 if (context->isWorkerGlobalScope()) |
| 174 return instrumentingAgentsFor(toWorkerGlobalScope(context)); | 174 return instrumentingAgentsFor(toWorkerGlobalScope(context)); |
| 175 if (context->isMainThreadWorkletGlobalScope()) | 175 if (context->isMainThreadWorkletGlobalScope()) |
| 176 return instrumentingAgentsFor( | 176 return instrumentingAgentsFor( |
| 177 toMainThreadWorkletGlobalScope(context)->frame()); | 177 toMainThreadWorkletGlobalScope(context)->frame()); |
| 178 return nullptr; | 178 return nullptr; |
| 179 } | 179 } |
| 180 | 180 |
| 181 } // namespace InspectorInstrumentation | 181 } // namespace InspectorInstrumentation |
| 182 | 182 |
| 183 } // namespace blink | 183 } // namespace blink |
| OLD | NEW |