Index: chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h |
diff --git a/chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h b/chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h |
index bc897bbeb722844a29432d8fd77ca73ff2d90f61..abc15bfb7f6b2851cf2f9ec4ae0676e7addf7650 100644 |
--- a/chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h |
+++ b/chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h |
@@ -92,11 +92,12 @@ class MTPDeviceAsyncDelegate { |
// Reads up to |buf_len| bytes from |device_file_path| into |buf|. Invokes the |
// appropriate callback asynchronously when complete. Only valid when |
// IsStreaming() is true. |
- virtual void ReadBytes( |
- const base::FilePath& device_file_path, |
- net::IOBuffer* buf, int64 offset, int buf_len, |
- const ReadBytesSuccessCallback& success_callback, |
- const ErrorCallback& error_callback) = 0; |
+ virtual void ReadBytes(const base::FilePath& device_file_path, |
+ const scoped_refptr<net::IOBuffer>& buf, |
+ int64 offset, |
+ int buf_len, |
+ const ReadBytesSuccessCallback& success_callback, |
+ const ErrorCallback& error_callback) = 0; |
// Called when the |
// (1) Browser application is in shutdown mode (or) |