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

Side by Side Diff: third_party/WebKit/Source/core/loader/TextTrackLoader.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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 , m_cueLoadTimer(this, &TextTrackLoader::cueLoadTimerFired) 43 , m_cueLoadTimer(this, &TextTrackLoader::cueLoadTimerFired)
44 , m_state(Idle) 44 , m_state(Idle)
45 , m_newCuesAvailable(false) 45 , m_newCuesAvailable(false)
46 { 46 {
47 } 47 }
48 48
49 TextTrackLoader::~TextTrackLoader() 49 TextTrackLoader::~TextTrackLoader()
50 { 50 {
51 } 51 }
52 52
53 void TextTrackLoader::cueLoadTimerFired(Timer<TextTrackLoader>* timer) 53 void TextTrackLoader::cueLoadTimerFired(TimerBase* timer)
54 { 54 {
55 ASSERT_UNUSED(timer, timer == &m_cueLoadTimer); 55 ASSERT_UNUSED(timer, timer == &m_cueLoadTimer);
56 56
57 if (m_newCuesAvailable) { 57 if (m_newCuesAvailable) {
58 m_newCuesAvailable = false; 58 m_newCuesAvailable = false;
59 m_client->newCuesAvailable(this); 59 m_client->newCuesAvailable(this);
60 } 60 }
61 61
62 if (m_state >= Finished) 62 if (m_state >= Finished)
63 m_client->cueLoadingCompleted(this, m_state == Failed); 63 m_client->cueLoadingCompleted(this, m_state == Failed);
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 DEFINE_TRACE(TextTrackLoader) 163 DEFINE_TRACE(TextTrackLoader)
164 { 164 {
165 visitor->trace(m_client); 165 visitor->trace(m_client);
166 visitor->trace(m_cueParser); 166 visitor->trace(m_cueParser);
167 visitor->trace(m_document); 167 visitor->trace(m_document);
168 ResourceOwner<RawResource>::trace(visitor); 168 ResourceOwner<RawResource>::trace(visitor);
169 VTTParserClient::trace(visitor); 169 VTTParserClient::trace(visitor);
170 } 170 }
171 171
172 } // namespace blink 172 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/TextTrackLoader.h ('k') | third_party/WebKit/Source/core/page/EventSource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698