| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 93 |
| 94 const char* data; | 94 const char* data; |
| 95 unsigned length; | 95 unsigned length; |
| 96 | 96 |
| 97 while ((length = buffer->getSomeData(data, m_parseOffset))) { | 97 while ((length = buffer->getSomeData(data, m_parseOffset))) { |
| 98 m_cueParser->parseBytes(data, length); | 98 m_cueParser->parseBytes(data, length); |
| 99 m_parseOffset += length; | 99 m_parseOffset += length; |
| 100 } | 100 } |
| 101 } | 101 } |
| 102 | 102 |
| 103 // FIXME: This is a very unusual pattern, no other ResourceClient does this. Ref
actor to use notifyFinished() instead. | 103 void TextTrackLoader::dataReceived(Resource* resource, const char*, int) |
| 104 void TextTrackLoader::deprecatedDidReceiveResource(Resource* resource) | |
| 105 { | 104 { |
| 106 ASSERT(m_cachedCueData == resource); | 105 ASSERT(m_cachedCueData == resource); |
| 107 | 106 |
| 108 if (!resource->resourceBuffer()) | 107 if (!resource->resourceBuffer()) |
| 109 return; | 108 return; |
| 110 | 109 |
| 111 processNewCueData(resource); | 110 processNewCueData(resource); |
| 112 } | 111 } |
| 113 | 112 |
| 114 void TextTrackLoader::corsPolicyPreventedLoad() | 113 void TextTrackLoader::corsPolicyPreventedLoad() |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 } | 205 } |
| 207 | 206 |
| 208 void TextTrackLoader::getNewRegions(Vector<RefPtr<TextTrackRegion> >& outputRegi
ons) | 207 void TextTrackLoader::getNewRegions(Vector<RefPtr<TextTrackRegion> >& outputRegi
ons) |
| 209 { | 208 { |
| 210 ASSERT(m_cueParser); | 209 ASSERT(m_cueParser); |
| 211 if (m_cueParser) | 210 if (m_cueParser) |
| 212 m_cueParser->getNewRegions(outputRegions); | 211 m_cueParser->getNewRegions(outputRegions); |
| 213 } | 212 } |
| 214 } | 213 } |
| 215 | 214 |
| OLD | NEW |