summaryrefslogtreecommitdiffstats
path: root/webkit/glue/media/simple_data_source.cc
diff options
context:
space:
mode:
authorscottfr@chromium.org <scottfr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-09 17:53:45 +0000
committerscottfr@chromium.org <scottfr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-09 17:53:45 +0000
commit24d75c714285a0c31b5e688a7c97fbc883e389c9 (patch)
treef908b22afc362f392ba02ac3a9a47175bca83a1d /webkit/glue/media/simple_data_source.cc
parent381455c05cb4f766d36cd99bb3fabde3e0d5246b (diff)
downloadchromium_src-24d75c714285a0c31b5e688a7c97fbc883e389c9.zip
chromium_src-24d75c714285a0c31b5e688a7c97fbc883e389c9.tar.gz
chromium_src-24d75c714285a0c31b5e688a7c97fbc883e389c9.tar.bz2
Log BufferedResourceLoader events to MediaLog.
BUG= TEST= Review URL: http://codereview.chromium.org/7591001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96014 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/media/simple_data_source.cc')
-rw-r--r--webkit/glue/media/simple_data_source.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/webkit/glue/media/simple_data_source.cc b/webkit/glue/media/simple_data_source.cc
index 48c2044..ab9f6d6 100644
--- a/webkit/glue/media/simple_data_source.cc
+++ b/webkit/glue/media/simple_data_source.cc
@@ -7,6 +7,7 @@
#include "base/message_loop.h"
#include "base/process_util.h"
#include "media/base/filter_host.h"
+#include "media/base/media_log.h"
#include "net/base/data_url.h"
#include "net/base/load_flags.h"
#include "net/http/http_request_headers.h"
@@ -26,7 +27,8 @@ namespace webkit_glue {
static const char kDataScheme[] = "data";
static WebDataSource* NewSimpleDataSource(MessageLoop* render_loop,
- WebKit::WebFrame* frame) {
+ WebKit::WebFrame* frame,
+ media::MediaLog* media_log) {
return new SimpleDataSource(render_loop, frame);
}
@@ -34,9 +36,10 @@ static WebDataSource* NewSimpleDataSource(MessageLoop* render_loop,
media::DataSourceFactory* SimpleDataSource::CreateFactory(
MessageLoop* render_loop,
WebKit::WebFrame* frame,
+ media::MediaLog* media_log,
WebDataSourceBuildObserverHack* build_observer) {
- return new WebDataSourceFactory(render_loop, frame, &NewSimpleDataSource,
- build_observer);
+ return new WebDataSourceFactory(render_loop, frame, media_log,
+ &NewSimpleDataSource, build_observer);
}
SimpleDataSource::SimpleDataSource(