Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: third_party/WebKit/Source/core/loader/PingLoader.cpp

Issue 2191533003: Refactor Timer classes in preparation for landing FrameTimers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More build fixes Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/PingLoader.h ('k') | third_party/WebKit/Source/core/loader/TextTrackLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698