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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 // model_name, total_size_in_bytes) were set. False if these fields were | 97 // model_name, total_size_in_bytes) were set. False if these fields were |
98 // never written. | 98 // never written. |
99 bool volume_metadata_valid; | 99 bool volume_metadata_valid; |
100 | 100 |
101 // 0 if the display_name is set externally and always used for display. | 101 // 0 if the display_name is set externally and always used for display. |
102 // 1 if the display_name is only set externally when it is overriding | 102 // 1 if the display_name is only set externally when it is overriding |
103 // the name constructed from volume metadata. | 103 // the name constructed from volume metadata. |
104 int prefs_version; | 104 int prefs_version; |
105 | 105 |
106 // Called by views to provide details for the gallery permission entries. | 106 // Called by views to provide details for the gallery permission entries. |
107 string16 GetGalleryDisplayName() const; | |
108 string16 GetGalleryTooltip() const; | 107 string16 GetGalleryTooltip() const; |
109 string16 GetGalleryAdditionalDetails() const; | 108 string16 GetGalleryAdditionalDetails() const; |
110 | 109 |
111 // Returns true if the gallery is currently a removable device gallery which | 110 // Returns true if the gallery is currently a removable device gallery which |
112 // is now attached, or a fixed storage gallery. | 111 // is now attached, or a fixed storage gallery. |
113 bool IsGalleryAvailable() const; | 112 bool IsGalleryAvailable() const; |
114 }; | 113 }; |
115 | 114 |
116 typedef std::map<MediaGalleryPrefId, MediaGalleryPrefInfo> | 115 typedef std::map<MediaGalleryPrefId, MediaGalleryPrefInfo> |
117 MediaGalleriesPrefInfoMap; | 116 MediaGalleriesPrefInfoMap; |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 DeviceIdPrefIdsMap device_map_; | 322 DeviceIdPrefIdsMap device_map_; |
324 | 323 |
325 ObserverList<GalleryChangeObserver> gallery_change_observers_; | 324 ObserverList<GalleryChangeObserver> gallery_change_observers_; |
326 | 325 |
327 base::WeakPtrFactory<MediaGalleriesPreferences> weak_factory_; | 326 base::WeakPtrFactory<MediaGalleriesPreferences> weak_factory_; |
328 | 327 |
329 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesPreferences); | 328 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesPreferences); |
330 }; | 329 }; |
331 | 330 |
332 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_PREFERENCES_H_ | 331 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_PREFERENCES_H_ |
OLD | NEW |