| OLD | NEW |
| 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 Loading... |
| 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 DeviceIdPrefIdsMap device_map_; | 356 DeviceIdPrefIdsMap device_map_; |
| 358 | 357 |
| 359 ObserverList<GalleryChangeObserver> gallery_change_observers_; | 358 ObserverList<GalleryChangeObserver> gallery_change_observers_; |
| 360 | 359 |
| 361 base::WeakPtrFactory<MediaGalleriesPreferences> weak_factory_; | 360 base::WeakPtrFactory<MediaGalleriesPreferences> weak_factory_; |
| 362 | 361 |
| 363 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesPreferences); | 362 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesPreferences); |
| 364 }; | 363 }; |
| 365 | 364 |
| 366 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_PREFERENCES_H_ | 365 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_PREFERENCES_H_ |
| OLD | NEW |