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

Unified Diff: chrome/browser/media_gallery/linux/mtp_device_object_enumerator.h

Issue 11855005: [Linux, Media Gallery] Fix MTPRecursiveDeviceObjectEnumerator to recursively enumerate all the medi… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review comments Created 7 years, 11 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_gallery/linux/mtp_device_object_enumerator.h
diff --git a/chrome/browser/media_gallery/linux/mtp_device_object_enumerator.h b/chrome/browser/media_gallery/linux/mtp_device_object_enumerator.h
index 340298ad3ed42bb8d37e0772bea7201865e62689..eda2da2561e4f8b593071b42103c0cca8a103602 100644
--- a/chrome/browser/media_gallery/linux/mtp_device_object_enumerator.h
+++ b/chrome/browser/media_gallery/linux/mtp_device_object_enumerator.h
@@ -30,6 +30,14 @@ class MTPDeviceObjectEnumerator
virtual bool IsDirectory() OVERRIDE;
virtual base::Time LastModifiedTime() OVERRIDE;
+ // If the current file entry is valid, returns true and fills in |entry_id|
+ // with the entry identifier else returns false and |entry_id| is not set.
+ bool GetEntryId(uint32_t* entry_id);
+
+ // Returns true if the enumerator has more entries to traverse, false
+ // otherwise.
+ bool HasMoreEntries();
+
private:
// List of directory file entries information.
const MtpFileEntries file_entries_;

Powered by Google App Engine
This is Rietveld 408576698