| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 Apple 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 void notifyFinished(Resource*) override; | 73 void notifyFinished(Resource*) override; |
| 74 String debugName() const override { return "TextTrackLoader"; } | 74 String debugName() const override { return "TextTrackLoader"; } |
| 75 | 75 |
| 76 // VTTParserClient | 76 // VTTParserClient |
| 77 void newCuesParsed() override; | 77 void newCuesParsed() override; |
| 78 void newRegionsParsed() override; | 78 void newRegionsParsed() override; |
| 79 void fileFailedToParse() override; | 79 void fileFailedToParse() override; |
| 80 | 80 |
| 81 TextTrackLoader(TextTrackLoaderClient&, Document&); | 81 TextTrackLoader(TextTrackLoaderClient&, Document&); |
| 82 | 82 |
| 83 void cueLoadTimerFired(Timer<TextTrackLoader>*); | 83 void cueLoadTimerFired(TimerBase*); |
| 84 void corsPolicyPreventedLoad(SecurityOrigin*, const KURL&); | 84 void corsPolicyPreventedLoad(SecurityOrigin*, const KURL&); |
| 85 | 85 |
| 86 Document& document() const { return *m_document; } | 86 Document& document() const { return *m_document; } |
| 87 | 87 |
| 88 Member<TextTrackLoaderClient> m_client; | 88 Member<TextTrackLoaderClient> m_client; |
| 89 Member<VTTParser> m_cueParser; | 89 Member<VTTParser> m_cueParser; |
| 90 // FIXME: Remove this pointer and get the Document from m_client. | 90 // FIXME: Remove this pointer and get the Document from m_client. |
| 91 Member<Document> m_document; | 91 Member<Document> m_document; |
| 92 Timer<TextTrackLoader> m_cueLoadTimer; | 92 Timer<TextTrackLoader> m_cueLoadTimer; |
| 93 State m_state; | 93 State m_state; |
| 94 bool m_newCuesAvailable; | 94 bool m_newCuesAvailable; |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace blink | 97 } // namespace blink |
| 98 | 98 |
| 99 #endif | 99 #endif |
| OLD | NEW |