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 14 matching lines...) Expand all Loading... |
25 | 25 |
26 #include "config.h" | 26 #include "config.h" |
27 | 27 |
28 #include "TextTrackLoader.h" | 28 #include "TextTrackLoader.h" |
29 | 29 |
30 #include "CachedResourceLoader.h" | 30 #include "CachedResourceLoader.h" |
31 #include "CachedResourceRequest.h" | 31 #include "CachedResourceRequest.h" |
32 #include "CachedTextTrack.h" | 32 #include "CachedTextTrack.h" |
33 #include "CrossOriginAccessControl.h" | 33 #include "CrossOriginAccessControl.h" |
34 #include "Document.h" | 34 #include "Document.h" |
35 #include "Logging.h" | |
36 #include "ScriptCallStack.h" | 35 #include "ScriptCallStack.h" |
37 #include "SecurityOrigin.h" | 36 #include "SecurityOrigin.h" |
38 #include "SharedBuffer.h" | |
39 #include "WebVTTParser.h" | 37 #include "WebVTTParser.h" |
| 38 #include "core/platform/Logging.h" |
| 39 #include "core/platform/SharedBuffer.h" |
40 #include "core/platform/network/ResourceHandle.h" | 40 #include "core/platform/network/ResourceHandle.h" |
41 | 41 |
42 namespace WebCore { | 42 namespace WebCore { |
43 | 43 |
44 TextTrackLoader::TextTrackLoader(TextTrackLoaderClient* client, ScriptExecutionC
ontext* context) | 44 TextTrackLoader::TextTrackLoader(TextTrackLoaderClient* client, ScriptExecutionC
ontext* context) |
45 : m_client(client) | 45 : m_client(client) |
46 , m_scriptExecutionContext(context) | 46 , m_scriptExecutionContext(context) |
47 , m_cueLoadTimer(this, &TextTrackLoader::cueLoadTimerFired) | 47 , m_cueLoadTimer(this, &TextTrackLoader::cueLoadTimerFired) |
48 , m_state(Idle) | 48 , m_state(Idle) |
49 , m_parseOffset(0) | 49 , m_parseOffset(0) |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 #if ENABLE(WEBVTT_REGIONS) | 215 #if ENABLE(WEBVTT_REGIONS) |
216 void TextTrackLoader::getNewRegions(Vector<RefPtr<TextTrackRegion> >& outputRegi
ons) | 216 void TextTrackLoader::getNewRegions(Vector<RefPtr<TextTrackRegion> >& outputRegi
ons) |
217 { | 217 { |
218 ASSERT(m_cueParser); | 218 ASSERT(m_cueParser); |
219 if (m_cueParser) | 219 if (m_cueParser) |
220 m_cueParser->getNewRegions(outputRegions); | 220 m_cueParser->getNewRegions(outputRegions); |
221 } | 221 } |
222 #endif | 222 #endif |
223 } | 223 } |
224 | 224 |
OLD | NEW |