Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(498)

Side by Side Diff: Source/core/loader/TextTrackLoader.cpp

Issue 50123006: Let TextTrackResource be a RawResource (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/loader/TextTrackLoader.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/loader/TextTrackLoader.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698