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

Unified Diff: chrome/browser/media_galleries/media_galleries_preferences.h

Issue 140033003: Media galleries preferences also needs to track file counts for scan results. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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_galleries/media_galleries_preferences.h
diff --git a/chrome/browser/media_galleries/media_galleries_preferences.h b/chrome/browser/media_galleries/media_galleries_preferences.h
index c8ba24a720f598757dd1b49e11b70740f430c2aa..173511ff079306f2754a9644826de7f3f1b3a45f 100644
--- a/chrome/browser/media_galleries/media_galleries_preferences.h
+++ b/chrome/browser/media_galleries/media_galleries_preferences.h
@@ -104,6 +104,14 @@ struct MediaGalleryPrefInfo {
// never written.
bool volume_metadata_valid;
+ // The following fields are populated with the image, music, and video file
+ // counts from the last scan if |type| is kScanResult. For files where it is
+ // hard to determine the exact type, the file should be counted in all
+ // possible counts.
+ int image_count;
+ int music_count;
+ int video_count;
+
// 0 if the display_name is set externally and always used for display.
// 1 if the display_name is only set externally when it is overriding
// the name constructed from volume metadata.
@@ -203,7 +211,10 @@ class MediaGalleriesPreferences : public BrowserContextKeyedService,
const base::string16& vendor_name,
const base::string16& model_name,
uint64 total_size_in_bytes,
- base::Time last_attach_time);
+ base::Time last_attach_time,
+ int image_count,
Lei Zhang 2014/01/15 22:13:43 The number of parameters is too damn high!
+ int music_count,
+ int video_count);
// Teach the registry about a gallery simply from the path. If the gallery is
// in a blacklisted state, it is unblacklisted. |type| should not be a
@@ -278,6 +289,9 @@ class MediaGalleriesPreferences : public BrowserContextKeyedService,
uint64 total_size_in_bytes,
base::Time last_attach_time,
bool volume_metadata_valid,
+ int image_count,
+ int music_count,
+ int video_count,
int prefs_version);
// Sets permission for the media galleries identified by |gallery_id| for the

Powered by Google App Engine
This is Rietveld 408576698