| 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 15 matching lines...) Expand all Loading... |
| 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" | 35 #include "Logging.h" |
| 36 #include "ResourceHandle.h" | |
| 37 #include "ScriptCallStack.h" | 36 #include "ScriptCallStack.h" |
| 38 #include "SecurityOrigin.h" | 37 #include "SecurityOrigin.h" |
| 39 #include "SharedBuffer.h" | 38 #include "SharedBuffer.h" |
| 40 #include "WebVTTParser.h" | 39 #include "WebVTTParser.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) |
| 50 , m_newCuesAvailable(false) | 50 , m_newCuesAvailable(false) |
| (...skipping 164 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 |