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

Unified Diff: media/base/data_source.h

Issue 9854031: Replace size_t with int in a few media classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tests Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/data_buffer_unittest.cc ('k') | media/base/data_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/data_source.h
diff --git a/media/base/data_source.h b/media/base/data_source.h
index 75772373ed7f5b8f84f3d7c4d7522dd8437f11c1..2c7e80835b1312d81faf4fe3bd4969c173131ed9 100644
--- a/media/base/data_source.h
+++ b/media/base/data_source.h
@@ -30,8 +30,8 @@ class MEDIA_EXPORT DataSourceHost {
class MEDIA_EXPORT DataSource : public base::RefCountedThreadSafe<DataSource> {
public:
typedef base::Callback<void(int64, int64)> StatusCallback;
- typedef base::Callback<void(size_t)> ReadCB;
- static const size_t kReadError;
+ typedef base::Callback<void(int)> ReadCB;
+ static const int kReadError;
DataSource();
@@ -40,10 +40,7 @@ class MEDIA_EXPORT DataSource : public base::RefCountedThreadSafe<DataSource> {
// Reads |size| bytes from |position| into |data|. And when the read is done
// or failed, |read_cb| is called with the number of bytes read or
// kReadError in case of error.
- // TODO(hclam): should change |size| to int! It makes the code so messy
- // with size_t and int all over the place..
- virtual void Read(int64 position, size_t size,
- uint8* data,
+ virtual void Read(int64 position, int size, uint8* data,
Ami GONE FROM CHROMIUM 2012/03/26 23:01:20 Shouldn't |position| be int, too? Generally my on
scherkus (not reviewing) 2012/03/26 23:19:39 We do <32-bit reads on >32-bit resources hence the
const DataSource::ReadCB& read_cb) = 0;
// Notifies the DataSource of a change in the current playback rate.
« no previous file with comments | « media/base/data_buffer_unittest.cc ('k') | media/base/data_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698