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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 | 129 |
130 bool isDebuggerPaused(LocalFrame*) { | 130 bool isDebuggerPaused(LocalFrame*) { |
131 return MainThreadDebugger::instance()->isPaused(); | 131 return MainThreadDebugger::instance()->isPaused(); |
132 } | 132 } |
133 | 133 |
134 void didReceiveResourceResponseButCanceled(LocalFrame* frame, | 134 void didReceiveResourceResponseButCanceled(LocalFrame* frame, |
135 DocumentLoader* loader, | 135 DocumentLoader* loader, |
136 unsigned long identifier, | 136 unsigned long identifier, |
137 const ResourceResponse& r, | 137 const ResourceResponse& r, |
138 Resource* resource) { | 138 Resource* resource) { |
139 didReceiveResourceResponse(frame->document(), identifier, loader, r, | 139 didReceiveResourceResponse(frame, identifier, loader, r, resource); |
140 resource); | |
141 } | 140 } |
142 | 141 |
143 void canceledAfterReceivedResourceResponse(LocalFrame* frame, | 142 void canceledAfterReceivedResourceResponse(LocalFrame* frame, |
144 DocumentLoader* loader, | 143 DocumentLoader* loader, |
145 unsigned long identifier, | 144 unsigned long identifier, |
146 const ResourceResponse& r, | 145 const ResourceResponse& r, |
147 Resource* resource) { | 146 Resource* resource) { |
148 didReceiveResourceResponseButCanceled(frame, loader, identifier, r, resource); | 147 didReceiveResourceResponseButCanceled(frame, loader, identifier, r, resource); |
149 } | 148 } |
150 | 149 |
(...skipping 21 matching lines...) Expand all Loading... |
172 return instrumentingAgentsFor(toWorkerGlobalScope(context)); | 171 return instrumentingAgentsFor(toWorkerGlobalScope(context)); |
173 if (context->isMainThreadWorkletGlobalScope()) | 172 if (context->isMainThreadWorkletGlobalScope()) |
174 return instrumentingAgentsFor( | 173 return instrumentingAgentsFor( |
175 toMainThreadWorkletGlobalScope(context)->frame()); | 174 toMainThreadWorkletGlobalScope(context)->frame()); |
176 return nullptr; | 175 return nullptr; |
177 } | 176 } |
178 | 177 |
179 } // namespace InspectorInstrumentation | 178 } // namespace InspectorInstrumentation |
180 | 179 |
181 } // namespace blink | 180 } // namespace blink |
OLD | NEW |