| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |