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

Unified Diff: webkit/media/buffered_data_source.cc

Issue 8764002: Finish the base::Bind migration for webkit/media. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
Index: webkit/media/buffered_data_source.cc
diff --git a/webkit/media/buffered_data_source.cc b/webkit/media/buffered_data_source.cc
index 2d7b8c9cfde9a7ce3d475a6a8b0500a6a32ea88b..0c005abbe6b9423900216c9d9d57441b7f3aaaa9 100644
--- a/webkit/media/buffered_data_source.cc
+++ b/webkit/media/buffered_data_source.cc
@@ -225,7 +225,7 @@ void BufferedDataSource::InitializeTask() {
// responds with 200 instead of 206 we'll fall back into a streaming mode.
loader_ = CreateResourceLoader(0, kPositionNotSpecified);
loader_->Start(
- NewCallback(this, &BufferedDataSource::HttpInitialStartCallback),
+ base::Bind(&BufferedDataSource::HttpInitialStartCallback, this),
base::Bind(&BufferedDataSource::NetworkEventCallback, this),
frame_);
} else {
@@ -235,7 +235,7 @@ void BufferedDataSource::InitializeTask() {
loader_ = CreateResourceLoader(kPositionNotSpecified,
kPositionNotSpecified);
loader_->Start(
- NewCallback(this, &BufferedDataSource::NonHttpInitialStartCallback),
+ base::Bind(&BufferedDataSource::NonHttpInitialStartCallback, this),
base::Bind(&BufferedDataSource::NetworkEventCallback, this),
frame_);
}
@@ -306,7 +306,7 @@ void BufferedDataSource::RestartLoadingTask() {
loader_ = CreateResourceLoader(read_position_, kPositionNotSpecified);
loader_->Start(
- NewCallback(this, &BufferedDataSource::PartialReadStartCallback),
+ base::Bind(&BufferedDataSource::PartialReadStartCallback, this),
base::Bind(&BufferedDataSource::NetworkEventCallback, this),
frame_);
}
@@ -374,7 +374,7 @@ void BufferedDataSource::ReadInternal() {
// Perform the actual read with BufferedResourceLoader.
loader_->Read(read_position_, read_size_, intermediate_read_buffer_.get(),
- NewCallback(this, &BufferedDataSource::ReadCallback));
+ base::Bind(&BufferedDataSource::ReadCallback, this));
}
// Method to report the results of the current read request. Also reset all
@@ -446,7 +446,7 @@ void BufferedDataSource::HttpInitialStartCallback(int error) {
loader_ = CreateResourceLoader(kPositionNotSpecified,
kPositionNotSpecified);
loader_->Start(
- NewCallback(this, &BufferedDataSource::HttpInitialStartCallback),
+ base::Bind(&BufferedDataSource::HttpInitialStartCallback, this),
base::Bind(&BufferedDataSource::NetworkEventCallback, this),
frame_);
return;
« no previous file with comments | « no previous file | webkit/media/buffered_data_source_unittest.cc » ('j') | webkit/media/buffered_data_source_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698