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

Side by Side Diff: Source/core/loader/NavigationScheduler.cpp

Issue 189833009: Trace where timers were scheduled in Blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/loader/LinkLoader.cpp ('k') | Source/core/loader/PingLoader.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
4 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 4 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
5 * Copyright (C) 2009 Adam Barth. All rights reserved. 5 * Copyright (C) 2009 Adam Barth. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 10 *
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 { 382 {
383 if (!m_redirect) 383 if (!m_redirect)
384 return; 384 return;
385 385
386 ASSERT(m_frame->page()); 386 ASSERT(m_frame->page());
387 if (m_timer.isActive()) 387 if (m_timer.isActive())
388 return; 388 return;
389 if (!m_redirect->shouldStartTimer(m_frame)) 389 if (!m_redirect->shouldStartTimer(m_frame))
390 return; 390 return;
391 391
392 m_timer.startOneShot(m_redirect->delay()); 392 m_timer.startOneShot(m_redirect->delay(), FROM_HERE);
393 InspectorInstrumentation::frameScheduledNavigation(m_frame, m_redirect->dela y()); 393 InspectorInstrumentation::frameScheduledNavigation(m_frame, m_redirect->dela y());
394 } 394 }
395 395
396 void NavigationScheduler::cancel() 396 void NavigationScheduler::cancel()
397 { 397 {
398 if (m_timer.isActive()) 398 if (m_timer.isActive())
399 InspectorInstrumentation::frameClearedScheduledNavigation(m_frame); 399 InspectorInstrumentation::frameClearedScheduledNavigation(m_frame);
400 m_timer.stop(); 400 m_timer.stop();
401 m_redirect.clear(); 401 m_redirect.clear();
402 } 402 }
403 403
404 } // namespace WebCore 404 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/loader/LinkLoader.cpp ('k') | Source/core/loader/PingLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698