| 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 | 199 |
| 200 void PingLoader::didFail(WebURLLoader*, const WebURLError& resourceError) | 200 void PingLoader::didFail(WebURLLoader*, const WebURLError& resourceError) |
| 201 { | 201 { |
| 202 if (LocalFrame* frame = this->frame()) { | 202 if (LocalFrame* frame = this->frame()) { |
| 203 TRACE_EVENT_INSTANT1("devtools.timeline", "ResourceFinish", TRACE_EVENT_
SCOPE_THREAD, "data", InspectorResourceFinishEvent::data(m_identifier, 0, true))
; | 203 TRACE_EVENT_INSTANT1("devtools.timeline", "ResourceFinish", TRACE_EVENT_
SCOPE_THREAD, "data", InspectorResourceFinishEvent::data(m_identifier, 0, true))
; |
| 204 didFailLoading(frame); | 204 didFailLoading(frame); |
| 205 } | 205 } |
| 206 dispose(); | 206 dispose(); |
| 207 } | 207 } |
| 208 | 208 |
| 209 void PingLoader::timeout(Timer<PingLoader>*) | 209 void PingLoader::timeout(TimerBase*) |
| 210 { | 210 { |
| 211 if (LocalFrame* frame = this->frame()) { | 211 if (LocalFrame* frame = this->frame()) { |
| 212 TRACE_EVENT_INSTANT1("devtools.timeline", "ResourceFinish", TRACE_EVENT_
SCOPE_THREAD, "data", InspectorResourceFinishEvent::data(m_identifier, 0, true))
; | 212 TRACE_EVENT_INSTANT1("devtools.timeline", "ResourceFinish", TRACE_EVENT_
SCOPE_THREAD, "data", InspectorResourceFinishEvent::data(m_identifier, 0, true))
; |
| 213 didFailLoading(frame); | 213 didFailLoading(frame); |
| 214 } | 214 } |
| 215 dispose(); | 215 dispose(); |
| 216 } | 216 } |
| 217 | 217 |
| 218 void PingLoader::didFailLoading(LocalFrame* frame) | 218 void PingLoader::didFailLoading(LocalFrame* frame) |
| 219 { | 219 { |
| 220 InspectorInstrumentation::didFailLoading(frame, m_identifier, ResourceError:
:cancelledError(m_url)); | 220 InspectorInstrumentation::didFailLoading(frame, m_identifier, ResourceError:
:cancelledError(m_url)); |
| 221 frame->console().didFailLoading(m_identifier, ResourceError::cancelledError(
m_url)); | 221 frame->console().didFailLoading(m_identifier, ResourceError::cancelledError(
m_url)); |
| 222 } | 222 } |
| 223 | 223 |
| 224 DEFINE_TRACE(PingLoader) | 224 DEFINE_TRACE(PingLoader) |
| 225 { | 225 { |
| 226 LocalFrameLifecycleObserver::trace(visitor); | 226 LocalFrameLifecycleObserver::trace(visitor); |
| 227 } | 227 } |
| 228 | 228 |
| 229 } // namespace blink | 229 } // namespace blink |
| OLD | NEW |