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

Side by Side Diff: Source/web/WebFrameImpl.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/web/WebDevToolsFrontendImpl.cpp ('k') | Source/web/WebHelperPluginImpl.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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 class WebFrameImpl::DeferredScopeStringMatches { 459 class WebFrameImpl::DeferredScopeStringMatches {
460 public: 460 public:
461 DeferredScopeStringMatches(WebFrameImpl* webFrame, int identifier, const Web String& searchText, const WebFindOptions& options, bool reset) 461 DeferredScopeStringMatches(WebFrameImpl* webFrame, int identifier, const Web String& searchText, const WebFindOptions& options, bool reset)
462 : m_timer(this, &DeferredScopeStringMatches::doTimeout) 462 : m_timer(this, &DeferredScopeStringMatches::doTimeout)
463 , m_webFrame(webFrame) 463 , m_webFrame(webFrame)
464 , m_identifier(identifier) 464 , m_identifier(identifier)
465 , m_searchText(searchText) 465 , m_searchText(searchText)
466 , m_options(options) 466 , m_options(options)
467 , m_reset(reset) 467 , m_reset(reset)
468 { 468 {
469 m_timer.startOneShot(0.0); 469 m_timer.startOneShot(0.0, FROM_HERE);
470 } 470 }
471 471
472 private: 472 private:
473 void doTimeout(Timer<DeferredScopeStringMatches>*) 473 void doTimeout(Timer<DeferredScopeStringMatches>*)
474 { 474 {
475 m_webFrame->callScopeStringMatches(this, m_identifier, m_searchText, m_o ptions, m_reset); 475 m_webFrame->callScopeStringMatches(this, m_identifier, m_searchText, m_o ptions, m_reset);
476 } 476 }
477 477
478 Timer<DeferredScopeStringMatches> m_timer; 478 Timer<DeferredScopeStringMatches> m_timer;
479 RefPtr<WebFrameImpl> m_webFrame; 479 RefPtr<WebFrameImpl> m_webFrame;
(...skipping 2002 matching lines...) Expand 10 before | Expand all | Expand 10 after
2482 2482
2483 // There is a possibility that the frame being detached was the only 2483 // There is a possibility that the frame being detached was the only
2484 // pending one. We need to make sure final replies can be sent. 2484 // pending one. We need to make sure final replies can be sent.
2485 flushCurrentScopingEffort(m_findRequestIdentifier); 2485 flushCurrentScopingEffort(m_findRequestIdentifier);
2486 2486
2487 cancelPendingScopingEffort(); 2487 cancelPendingScopingEffort();
2488 } 2488 }
2489 } 2489 }
2490 2490
2491 } // namespace blink 2491 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebDevToolsFrontendImpl.cpp ('k') | Source/web/WebHelperPluginImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698