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

Unified Diff: chrome/browser/media_galleries/linux/mtp_device_task_helper.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/linux/mtp_device_task_helper.h
diff --git a/chrome/browser/media_galleries/linux/mtp_device_task_helper.h b/chrome/browser/media_galleries/linux/mtp_device_task_helper.h
index 9c1a8f6d8fd0634f9473c536076cd58b65ff616b..c1f5539cdee5e93ef98122f0110b9369db3bc143 100644
--- a/chrome/browser/media_galleries/linux/mtp_device_task_helper.h
+++ b/chrome/browser/media_galleries/linux/mtp_device_task_helper.h
@@ -137,6 +137,12 @@ class MTPDeviceTaskHelper {
const std::vector<MtpFileEntry>& file_entries,
bool error) const;
+ // Intermediate step to finish a ReadBytes request.
+ void OnGetFileInfoToReadBytes(
+ const MTPDeviceAsyncDelegate::ReadBytesRequest& request,
+ const MtpFileEntry& file_entry,
+ bool error);
+
// Query callback for ReadBytes();
//
// If there is no error, |error| is set to false, the buffer within |request|
@@ -148,6 +154,7 @@ class MTPDeviceTaskHelper {
// IO thread to notify the caller.
void OnDidReadBytes(
const MTPDeviceAsyncDelegate::ReadBytesRequest& request,
+ const base::File::Info& file_info,
const std::string& data,
bool error) const;

Powered by Google App Engine
This is Rietveld 408576698