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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 if (!m_instrumentingAgents || !m_instrumentingAgents->hasInspectorPageAgents
()) | 167 if (!m_instrumentingAgents || !m_instrumentingAgents->hasInspectorPageAgents
()) |
168 return; | 168 return; |
169 for (InspectorPageAgent* pageAgent : m_instrumentingAgents->inspectorPageAge
nts()) | 169 for (InspectorPageAgent* pageAgent : m_instrumentingAgents->inspectorPageAge
nts()) |
170 pageAgent->didRunJavaScriptDialog(m_result); | 170 pageAgent->didRunJavaScriptDialog(m_result); |
171 } | 171 } |
172 | 172 |
173 int FrontendCounter::s_frontendCounter = 0; | 173 int FrontendCounter::s_frontendCounter = 0; |
174 | 174 |
175 bool isDebuggerPaused(LocalFrame*) | 175 bool isDebuggerPaused(LocalFrame*) |
176 { | 176 { |
177 return MainThreadDebugger::instance()->debugger()->isPaused(); | 177 return MainThreadDebugger::instance()->isPaused(); |
178 } | 178 } |
179 | 179 |
180 void didReceiveResourceResponseButCanceled(LocalFrame* frame, DocumentLoader* lo
ader, unsigned long identifier, const ResourceResponse& r, Resource* resource) | 180 void didReceiveResourceResponseButCanceled(LocalFrame* frame, DocumentLoader* lo
ader, unsigned long identifier, const ResourceResponse& r, Resource* resource) |
181 { | 181 { |
182 didReceiveResourceResponse(frame, identifier, loader, r, resource); | 182 didReceiveResourceResponse(frame, identifier, loader, r, resource); |
183 } | 183 } |
184 | 184 |
185 void continueAfterXFrameOptionsDenied(LocalFrame* frame, DocumentLoader* loader,
unsigned long identifier, const ResourceResponse& r, Resource* resource) | 185 void continueAfterXFrameOptionsDenied(LocalFrame* frame, DocumentLoader* loader,
unsigned long identifier, const ResourceResponse& r, Resource* resource) |
186 { | 186 { |
187 didReceiveResourceResponseButCanceled(frame, loader, identifier, r, resource
); | 187 didReceiveResourceResponseButCanceled(frame, loader, identifier, r, resource
); |
(...skipping 18 matching lines...) Expand all Loading... |
206 if (context->isWorkerGlobalScope()) | 206 if (context->isWorkerGlobalScope()) |
207 return instrumentingAgentsFor(toWorkerGlobalScope(context)); | 207 return instrumentingAgentsFor(toWorkerGlobalScope(context)); |
208 if (context->isMainThreadWorkletGlobalScope()) | 208 if (context->isMainThreadWorkletGlobalScope()) |
209 return instrumentingAgentsFor(toMainThreadWorkletGlobalScope(context)->f
rame()); | 209 return instrumentingAgentsFor(toMainThreadWorkletGlobalScope(context)->f
rame()); |
210 return nullptr; | 210 return nullptr; |
211 } | 211 } |
212 | 212 |
213 } // namespace InspectorInstrumentation | 213 } // namespace InspectorInstrumentation |
214 | 214 |
215 } // namespace blink | 215 } // namespace blink |
OLD | NEW |