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

Unified Diff: chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h

Issue 180783005: MTP Streaming: Optimize block reading (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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/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 9ac5f7bb7740b1e6f37b74588a77bd7b1b97797c..a6cfebf45ea6789cadedaf31113491d3fd60de7d 100644
--- a/chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h
+++ b/chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h
@@ -44,7 +44,9 @@ class MTPDeviceAsyncDelegate {
const base::FilePath& local_path)> CreateSnapshotFileSuccessCallback;
// A callback to be called when ReadBytes method call succeeds.
- typedef base::Callback<void(int)> ReadBytesSuccessCallback;
+ typedef base::Callback<
+ void(const base::File::Info& file_info,
+ int bytes_read)> ReadBytesSuccessCallback;
struct ReadBytesRequest {
ReadBytesRequest(const std::string& device_file_relative_path,

Powered by Google App Engine
This is Rietveld 408576698