| 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 12 matching lines...) Expand all Loading... |
| 23 * THE POSSIBILITY OF SUCH DAMAGE. | 23 * THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef TextTrackLoader_h | 26 #ifndef TextTrackLoader_h |
| 27 #define TextTrackLoader_h | 27 #define TextTrackLoader_h |
| 28 | 28 |
| 29 #include "core/fetch/RawResource.h" | 29 #include "core/fetch/RawResource.h" |
| 30 #include "core/fetch/ResourceOwner.h" | 30 #include "core/fetch/ResourceOwner.h" |
| 31 #include "core/html/track/vtt/VTTParser.h" | 31 #include "core/html/track/vtt/VTTParser.h" |
| 32 #include "platform/CrossOriginAttributeValue.h" | 32 #include "platform/CrossOriginAttributeValue.h" |
| 33 #include "platform/Timer.h" | |
| 34 #include "platform/heap/Handle.h" | 33 #include "platform/heap/Handle.h" |
| 35 | 34 |
| 36 namespace blink { | 35 namespace blink { |
| 37 | 36 |
| 38 class Document; | 37 class Document; |
| 39 class TextTrackLoader; | 38 class TextTrackLoader; |
| 40 | 39 |
| 41 class TextTrackLoaderClient : public GarbageCollectedMixin { | 40 class TextTrackLoaderClient : public GarbageCollectedMixin { |
| 42 public: | 41 public: |
| 43 virtual ~TextTrackLoaderClient() {} | 42 virtual ~TextTrackLoaderClient() {} |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 87 |
| 89 void cueLoadTimerFired(TimerBase*); | 88 void cueLoadTimerFired(TimerBase*); |
| 90 void corsPolicyPreventedLoad(SecurityOrigin*, const KURL&); | 89 void corsPolicyPreventedLoad(SecurityOrigin*, const KURL&); |
| 91 | 90 |
| 92 Document& document() const { return *m_document; } | 91 Document& document() const { return *m_document; } |
| 93 | 92 |
| 94 Member<TextTrackLoaderClient> m_client; | 93 Member<TextTrackLoaderClient> m_client; |
| 95 Member<VTTParser> m_cueParser; | 94 Member<VTTParser> m_cueParser; |
| 96 // FIXME: Remove this pointer and get the Document from m_client. | 95 // FIXME: Remove this pointer and get the Document from m_client. |
| 97 Member<Document> m_document; | 96 Member<Document> m_document; |
| 98 Timer<TextTrackLoader> m_cueLoadTimer; | 97 TaskRunnerTimer<TextTrackLoader> m_cueLoadTimer; |
| 99 State m_state; | 98 State m_state; |
| 100 bool m_newCuesAvailable; | 99 bool m_newCuesAvailable; |
| 101 }; | 100 }; |
| 102 | 101 |
| 103 } // namespace blink | 102 } // namespace blink |
| 104 | 103 |
| 105 #endif | 104 #endif |
| OLD | NEW |