summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webkit/glue/media/simple_data_source.cc3
-rw-r--r--webkit/glue/media/simple_data_source.h3
-rw-r--r--webkit/glue/media/simple_data_source_unittest.cc2
3 files changed, 5 insertions, 3 deletions
diff --git a/webkit/glue/media/simple_data_source.cc b/webkit/glue/media/simple_data_source.cc
index 4b2281d..45befa0 100644
--- a/webkit/glue/media/simple_data_source.cc
+++ b/webkit/glue/media/simple_data_source.cc
@@ -183,7 +183,8 @@ void SimpleDataSource::didDownloadData(
void SimpleDataSource::didReceiveData(
WebKit::WebURLLoader* loader,
const char* data,
- int data_length) {
+ int data_length,
+ int raw_data_length) {
DCHECK(MessageLoop::current() == render_loop_);
data_.append(data, data_length);
}
diff --git a/webkit/glue/media/simple_data_source.h b/webkit/glue/media/simple_data_source.h
index 3ecd5bb..3993f3b 100644
--- a/webkit/glue/media/simple_data_source.h
+++ b/webkit/glue/media/simple_data_source.h
@@ -74,7 +74,8 @@ class SimpleDataSource : public WebDataSource,
virtual void didReceiveData(
WebKit::WebURLLoader* loader,
const char* data,
- int dataLength);
+ int dataLength,
+ int rawDataLength);
virtual void didReceiveCachedMetadata(
WebKit::WebURLLoader* loader,
const char* data, int dataLength);
diff --git a/webkit/glue/media/simple_data_source_unittest.cc b/webkit/glue/media/simple_data_source_unittest.cc
index d3177ae..61e41f2 100644
--- a/webkit/glue/media/simple_data_source_unittest.cc
+++ b/webkit/glue/media/simple_data_source_unittest.cc
@@ -86,7 +86,7 @@ class SimpleDataSourceTest : public testing::Test {
EXPECT_EQ(kDataSize, size);
for (int i = 0; i < kDataSize; ++i) {
- data_source_->didReceiveData(NULL, data_ + i, 1);
+ data_source_->didReceiveData(NULL, data_ + i, 1, 1);
}
EXPECT_CALL(host_, SetLoaded(is_loaded));