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

Side by Side Diff: chrome/browser/media_galleries/media_galleries_preferences.h

Issue 148063006: Put all scan results in the media galleries scan result dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/media_galleries/media_galleries_preferences.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_PREFERENCES_H_ 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_PREFERENCES_H_
6 #define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_PREFERENCES_H_ 6 #define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_PREFERENCES_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // attached. It is stored in preferences by the base::Time internal value, 98 // attached. It is stored in preferences by the base::Time internal value,
99 // which is microseconds since the epoch. 99 // which is microseconds since the epoch.
100 base::Time last_attach_time; 100 base::Time last_attach_time;
101 101
102 // Set to true if the volume metadata fields (volume_label, vendor_name, 102 // Set to true if the volume metadata fields (volume_label, vendor_name,
103 // model_name, total_size_in_bytes) were set. False if these fields were 103 // model_name, total_size_in_bytes) were set. False if these fields were
104 // never written. 104 // never written.
105 bool volume_metadata_valid; 105 bool volume_metadata_valid;
106 106
107 // The following fields are populated with the audio, image, and video file 107 // The following fields are populated with the audio, image, and video file
108 // counts from the last scan if |type| is kScanResult. For files where it is 108 // counts from the last scan. For files where it is hard to determine the
109 // hard to determine the exact type, the file should be counted in all 109 // exact type, the file should be counted in all possible counts.
110 // possible counts.
111 int audio_count; 110 int audio_count;
112 int image_count; 111 int image_count;
113 int video_count; 112 int video_count;
114 113
115 // 0 if the display_name is set externally and always used for display. 114 // 0 if the display_name is set externally and always used for display.
116 // 1 if the display_name is only set externally when it is overriding 115 // 1 if the display_name is only set externally when it is overriding
117 // the name constructed from volume metadata. 116 // the name constructed from volume metadata.
118 int prefs_version; 117 int prefs_version;
119 118
120 // Called by views to provide details for the gallery permission entries. 119 // Called by views to provide details for the gallery permission entries.
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 DeviceIdPrefIdsMap device_map_; 361 DeviceIdPrefIdsMap device_map_;
363 362
364 ObserverList<GalleryChangeObserver> gallery_change_observers_; 363 ObserverList<GalleryChangeObserver> gallery_change_observers_;
365 364
366 base::WeakPtrFactory<MediaGalleriesPreferences> weak_factory_; 365 base::WeakPtrFactory<MediaGalleriesPreferences> weak_factory_;
367 366
368 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesPreferences); 367 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesPreferences);
369 }; 368 };
370 369
371 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_PREFERENCES_H_ 370 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_PREFERENCES_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media_galleries/media_galleries_preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698