OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 { | 171 { |
172 if (LocalFrame* frame = this->frame()) { | 172 if (LocalFrame* frame = this->frame()) { |
173 TRACE_EVENT_INSTANT1("devtools.timeline", "ResourceFinish", TRACE_EVENT_
SCOPE_THREAD, "data", InspectorResourceFinishEvent::data(m_identifier, 0, true))
; | 173 TRACE_EVENT_INSTANT1("devtools.timeline", "ResourceFinish", TRACE_EVENT_
SCOPE_THREAD, "data", InspectorResourceFinishEvent::data(m_identifier, 0, true))
; |
174 const ResourceResponse& resourceResponse = response.toResourceResponse()
; | 174 const ResourceResponse& resourceResponse = response.toResourceResponse()
; |
175 InspectorInstrumentation::didReceiveResourceResponse(frame, m_identifier
, 0, resourceResponse, 0); | 175 InspectorInstrumentation::didReceiveResourceResponse(frame, m_identifier
, 0, resourceResponse, 0); |
176 didFailLoading(frame); | 176 didFailLoading(frame); |
177 } | 177 } |
178 dispose(); | 178 dispose(); |
179 } | 179 } |
180 | 180 |
181 void PingLoader::didReceiveData(WebURLLoader*, const char*, int, int) | 181 void PingLoader::didReceiveData(WebURLLoader*, const char*, int, int, int) |
182 { | 182 { |
183 if (LocalFrame* frame = this->frame()) { | 183 if (LocalFrame* frame = this->frame()) { |
184 TRACE_EVENT_INSTANT1("devtools.timeline", "ResourceFinish", TRACE_EVENT_
SCOPE_THREAD, "data", InspectorResourceFinishEvent::data(m_identifier, 0, true))
; | 184 TRACE_EVENT_INSTANT1("devtools.timeline", "ResourceFinish", TRACE_EVENT_
SCOPE_THREAD, "data", InspectorResourceFinishEvent::data(m_identifier, 0, true))
; |
185 didFailLoading(frame); | 185 didFailLoading(frame); |
186 } | 186 } |
187 dispose(); | 187 dispose(); |
188 } | 188 } |
189 | 189 |
190 void PingLoader::didFinishLoading(WebURLLoader*, double, int64_t) | 190 void PingLoader::didFinishLoading(WebURLLoader*, double, int64_t) |
191 { | 191 { |
(...skipping 27 matching lines...) Expand all Loading... |
219 InspectorInstrumentation::didFailLoading(frame, m_identifier, ResourceError:
:cancelledError(m_url)); | 219 InspectorInstrumentation::didFailLoading(frame, m_identifier, ResourceError:
:cancelledError(m_url)); |
220 frame->console().didFailLoading(m_identifier, ResourceError::cancelledError(
m_url)); | 220 frame->console().didFailLoading(m_identifier, ResourceError::cancelledError(
m_url)); |
221 } | 221 } |
222 | 222 |
223 DEFINE_TRACE(PingLoader) | 223 DEFINE_TRACE(PingLoader) |
224 { | 224 { |
225 LocalFrameLifecycleObserver::trace(visitor); | 225 LocalFrameLifecycleObserver::trace(visitor); |
226 } | 226 } |
227 | 227 |
228 } // namespace blink | 228 } // namespace blink |
OLD | NEW |