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

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

Issue 618583002: Correct data size argument type in resource loading path to unsigned (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add static_cast to RELEASE_ASSERT in AssociatedURLLoader::ClientAdapter::didReceiveData Created 6 years, 2 months 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') | Source/core/loader/ThreadableLoaderClient.h » ('j') | 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 if (m_state >= Finished) 64 if (m_state >= Finished)
65 m_client.cueLoadingCompleted(this, m_state == Failed); 65 m_client.cueLoadingCompleted(this, m_state == Failed);
66 } 66 }
67 67
68 void TextTrackLoader::cancelLoad() 68 void TextTrackLoader::cancelLoad()
69 { 69 {
70 clearResource(); 70 clearResource();
71 } 71 }
72 72
73 void TextTrackLoader::dataReceived(Resource* resource, const char* data, int len gth) 73 void TextTrackLoader::dataReceived(Resource* resource, const char* data, unsigne d length)
74 { 74 {
75 ASSERT(this->resource() == resource); 75 ASSERT(this->resource() == resource);
76 76
77 if (m_state == Failed) 77 if (m_state == Failed)
78 return; 78 return;
79 79
80 if (!m_cueParser) 80 if (!m_cueParser)
81 m_cueParser = VTTParser::create(this, document()); 81 m_cueParser = VTTParser::create(this, document());
82 82
83 m_cueParser->parseBytes(data, length); 83 m_cueParser->parseBytes(data, length);
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 m_cueParser->getNewRegions(outputRegions); 164 m_cueParser->getNewRegions(outputRegions);
165 } 165 }
166 166
167 void TextTrackLoader::trace(Visitor* visitor) 167 void TextTrackLoader::trace(Visitor* visitor)
168 { 168 {
169 visitor->trace(m_cueParser); 169 visitor->trace(m_cueParser);
170 visitor->trace(m_document); 170 visitor->trace(m_document);
171 } 171 }
172 172
173 } 173 }
OLDNEW
« no previous file with comments | « Source/core/loader/TextTrackLoader.h ('k') | Source/core/loader/ThreadableLoaderClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698