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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 virtual void notifyFinished(Resource*) OVERRIDE; | 71 virtual void notifyFinished(Resource*) OVERRIDE; |
72 | 72 |
73 // VTTParserClient | 73 // VTTParserClient |
74 virtual void newCuesParsed() OVERRIDE; | 74 virtual void newCuesParsed() OVERRIDE; |
75 virtual void newRegionsParsed() OVERRIDE; | 75 virtual void newRegionsParsed() OVERRIDE; |
76 virtual void fileFailedToParse() OVERRIDE; | 76 virtual void fileFailedToParse() OVERRIDE; |
77 | 77 |
78 TextTrackLoader(TextTrackLoaderClient&, Document&); | 78 TextTrackLoader(TextTrackLoaderClient&, Document&); |
79 | 79 |
80 void cueLoadTimerFired(Timer<TextTrackLoader>*); | 80 void cueLoadTimerFired(Timer<TextTrackLoader>*); |
81 void corsPolicyPreventedLoad(); | 81 void corsPolicyPreventedLoad(SecurityOrigin*, const KURL&); |
82 | 82 |
83 TextTrackLoaderClient& m_client; | 83 TextTrackLoaderClient& m_client; |
84 OwnPtr<VTTParser> m_cueParser; | 84 OwnPtr<VTTParser> m_cueParser; |
85 // FIXME: Remove this pointer and get the Document from m_client. | 85 // FIXME: Remove this pointer and get the Document from m_client. |
86 Document& m_document; | 86 Document& m_document; |
87 Timer<TextTrackLoader> m_cueLoadTimer; | 87 Timer<TextTrackLoader> m_cueLoadTimer; |
88 String m_crossOriginMode; | |
89 State m_state; | 88 State m_state; |
90 bool m_newCuesAvailable; | 89 bool m_newCuesAvailable; |
91 }; | 90 }; |
92 | 91 |
93 } // namespace WebCore | 92 } // namespace WebCore |
94 | 93 |
95 #endif | 94 #endif |
OLD | NEW |