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

Unified Diff: chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h

Issue 518743002: Media gallery fixups for scoped_refptr<T> operator T* removal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add callback typedef Created 6 years, 4 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
Index: chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h
diff --git a/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h b/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h
index 13e25c2c19c45b100a98958e776e5687362be539..af94976c1971ed98adcfb3f0676ab4f3ead12539 100644
--- a/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h
+++ b/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h
@@ -50,11 +50,12 @@ class MTPDeviceDelegateImplMac : public MTPDeviceAsyncDelegate {
const CreateSnapshotFileSuccessCallback& success_callback,
const ErrorCallback& error_callback) OVERRIDE;
virtual bool IsStreaming() OVERRIDE;
- 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) OVERRIDE;
+ 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) OVERRIDE;
virtual void CancelPendingTasksAndDeleteDelegate() OVERRIDE;
// Forward delegates for ImageCaptureDeviceListener. These are

Powered by Google App Engine
This is Rietveld 408576698