| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 71 |
| 72 // TextTrackLoaderClient | 72 // TextTrackLoaderClient |
| 73 void newCuesAvailable(TextTrackLoader*) override; | 73 void newCuesAvailable(TextTrackLoader*) override; |
| 74 void cueLoadingCompleted(TextTrackLoader*, bool loadingFailed) override; | 74 void cueLoadingCompleted(TextTrackLoader*, bool loadingFailed) override; |
| 75 void newRegionsAvailable(TextTrackLoader*) override; | 75 void newRegionsAvailable(TextTrackLoader*) override; |
| 76 | 76 |
| 77 void setReadyState(ReadyState); | 77 void setReadyState(ReadyState); |
| 78 | 78 |
| 79 const AtomicString& mediaElementCrossOriginAttribute() const; | 79 const AtomicString& mediaElementCrossOriginAttribute() const; |
| 80 bool canLoadUrl(const KURL&); | 80 bool canLoadUrl(const KURL&); |
| 81 void loadTimerFired(Timer<HTMLTrackElement>*); | 81 void loadTimerFired(TimerBase*); |
| 82 | 82 |
| 83 enum LoadStatus { | 83 enum LoadStatus { |
| 84 Failure, | 84 Failure, |
| 85 Success | 85 Success |
| 86 }; | 86 }; |
| 87 void didCompleteLoad(LoadStatus); | 87 void didCompleteLoad(LoadStatus); |
| 88 | 88 |
| 89 HTMLMediaElement* mediaElement() const; | 89 HTMLMediaElement* mediaElement() const; |
| 90 | 90 |
| 91 LoadableTextTrack* ensureTrack(); | 91 LoadableTextTrack* ensureTrack(); |
| 92 | 92 |
| 93 Member<LoadableTextTrack> m_track; | 93 Member<LoadableTextTrack> m_track; |
| 94 Member<TextTrackLoader> m_loader; | 94 Member<TextTrackLoader> m_loader; |
| 95 Timer<HTMLTrackElement> m_loadTimer; | 95 Timer<HTMLTrackElement> m_loadTimer; |
| 96 KURL m_url; | 96 KURL m_url; |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 } // namespace blink | 99 } // namespace blink |
| 100 | 100 |
| 101 #endif // HTMLTrackElement_h | 101 #endif // HTMLTrackElement_h |
| OLD | NEW |