Index: chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.h |
diff --git a/chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.h b/chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.h |
index 0a698e6c7c2b18bb9ec5c1507211b3f408bc8fa0..510f1f0e86aabb4facc757029a36fa8da3cf25c5 100644 |
--- a/chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.h |
+++ b/chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.h |
@@ -95,6 +95,9 @@ class MTPDeviceDelegateImplLinux : public MTPDeviceAsyncDelegate { |
// |snapshot_file_info| specifies the metadata details of the snapshot file. |
void WriteDataIntoSnapshotFile(const base::File::Info& snapshot_file_info); |
+ // Marks the current request as complete and call ProcessNextPendingRequest(). |
+ void PendingRequestDone(); |
+ |
// Processes the next pending request. |
void ProcessNextPendingRequest(); |
@@ -177,6 +180,8 @@ class MTPDeviceDelegateImplLinux : public MTPDeviceAsyncDelegate { |
InitializationState init_state_; |
// Used to make sure only one task is in progress at any time. |
+ // Otherwise the browser will try to send too many requests at once and |
+ // overload the device. |
bool task_in_progress_; |
// Registered file system device path. This path does not |