| 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 class VTTParserClient { | 50 class VTTParserClient { |
| 51 public: | 51 public: |
| 52 virtual ~VTTParserClient() { } | 52 virtual ~VTTParserClient() { } |
| 53 | 53 |
| 54 virtual void newCuesParsed() = 0; | 54 virtual void newCuesParsed() = 0; |
| 55 virtual void newRegionsParsed() = 0; | 55 virtual void newRegionsParsed() = 0; |
| 56 virtual void fileFailedToParse() = 0; | 56 virtual void fileFailedToParse() = 0; |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 class VTTParser FINAL : public NoBaseWillBeGarbageCollectedFinalized<VTTParser>
{ | 59 class VTTParser final : public NoBaseWillBeGarbageCollectedFinalized<VTTParser>
{ |
| 60 public: | 60 public: |
| 61 enum ParseState { | 61 enum ParseState { |
| 62 Initial, | 62 Initial, |
| 63 Header, | 63 Header, |
| 64 Id, | 64 Id, |
| 65 TimingsAndSettings, | 65 TimingsAndSettings, |
| 66 CueText, | 66 CueText, |
| 67 BadCue | 67 BadCue |
| 68 }; | 68 }; |
| 69 | 69 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 VTTParserClient* m_client; | 144 VTTParserClient* m_client; |
| 145 | 145 |
| 146 WillBeHeapVector<RefPtrWillBeMember<VTTCue> > m_cueList; | 146 WillBeHeapVector<RefPtrWillBeMember<VTTCue> > m_cueList; |
| 147 | 147 |
| 148 WillBeHeapVector<RefPtrWillBeMember<VTTRegion> > m_regionList; | 148 WillBeHeapVector<RefPtrWillBeMember<VTTRegion> > m_regionList; |
| 149 }; | 149 }; |
| 150 | 150 |
| 151 } // namespace blink | 151 } // namespace blink |
| 152 | 152 |
| 153 #endif | 153 #endif |
| OLD | NEW |