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 15 matching lines...) Expand all Loading... |
26 | 26 |
27 namespace extensions { | 27 namespace extensions { |
28 class Extension; | 28 class Extension; |
29 class ExtensionPrefs; | 29 class ExtensionPrefs; |
30 } | 30 } |
31 | 31 |
32 namespace user_prefs { | 32 namespace user_prefs { |
33 class PrefRegistrySyncable; | 33 class PrefRegistrySyncable; |
34 } | 34 } |
35 | 35 |
36 namespace chrome { | |
37 | |
38 typedef uint64 MediaGalleryPrefId; | 36 typedef uint64 MediaGalleryPrefId; |
39 const MediaGalleryPrefId kInvalidMediaGalleryPrefId = 0; | 37 const MediaGalleryPrefId kInvalidMediaGalleryPrefId = 0; |
40 | 38 |
41 struct MediaGalleryPermission { | 39 struct MediaGalleryPermission { |
42 MediaGalleryPrefId pref_id; | 40 MediaGalleryPrefId pref_id; |
43 bool has_permission; | 41 bool has_permission; |
44 }; | 42 }; |
45 | 43 |
46 struct MediaGalleryPrefInfo { | 44 struct MediaGalleryPrefInfo { |
47 enum Type { | 45 enum Type { |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 | 295 |
298 // A mapping from device id to the set of gallery pref ids on that device. | 296 // A mapping from device id to the set of gallery pref ids on that device. |
299 // All pref ids in |device_map_| are also in |known_galleries_|. | 297 // All pref ids in |device_map_| are also in |known_galleries_|. |
300 DeviceIdPrefIdsMap device_map_; | 298 DeviceIdPrefIdsMap device_map_; |
301 | 299 |
302 ObserverList<GalleryChangeObserver> gallery_change_observers_; | 300 ObserverList<GalleryChangeObserver> gallery_change_observers_; |
303 | 301 |
304 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesPreferences); | 302 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesPreferences); |
305 }; | 303 }; |
306 | 304 |
307 } // namespace chrome | |
308 | |
309 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_PREFERENCES_H_ | 305 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_PREFERENCES_H_ |
OLD | NEW |