| 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_GALLERY_MEDIA_GALLERIES_PREFERENCES_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_PREFERENCES_H_ |
| 6 #define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_PREFERENCES_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_PREFERENCES_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
| 13 #include "base/string16.h" | 13 #include "base/string16.h" |
| 14 #include "chrome/browser/profiles/profile_keyed_service.h" | 14 #include "chrome/browser/profiles/profile_keyed_service.h" |
| 15 | 15 |
| 16 class PrefService; |
| 17 class Profile; |
| 18 |
| 16 namespace base { | 19 namespace base { |
| 17 class DictionaryValue; | 20 class DictionaryValue; |
| 18 } | 21 } |
| 19 | 22 |
| 20 class PrefService; | 23 typedef uint64 MediaGalleryPrefId; |
| 21 class Profile; | 24 |
| 25 struct MediaGalleryPermission { |
| 26 MediaGalleryPrefId pref_id; |
| 27 bool has_permission; |
| 28 }; |
| 22 | 29 |
| 23 struct MediaGallery { | 30 struct MediaGallery { |
| 24 MediaGallery(); | 31 MediaGallery(); |
| 25 ~MediaGallery(); | 32 ~MediaGallery(); |
| 26 | 33 |
| 27 // The ID that uniquely, persistently identifies the gallery. | 34 // The ID that uniquely, persistently identifies the gallery. |
| 28 uint64 id; | 35 uint64 id; |
| 29 | 36 |
| 30 // The directory where the gallery is located, relative to the base path | 37 // The directory where the gallery is located, relative to the base path |
| 31 // for the device. | 38 // for the device. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 Profile* profile_; | 85 Profile* profile_; |
| 79 | 86 |
| 80 // An in-memory cache of known galleries. | 87 // An in-memory cache of known galleries. |
| 81 // TODO(estade): either actually use this, or remove it. | 88 // TODO(estade): either actually use this, or remove it. |
| 82 MediaGalleries remembered_galleries_; | 89 MediaGalleries remembered_galleries_; |
| 83 | 90 |
| 84 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesPreferences); | 91 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesPreferences); |
| 85 }; | 92 }; |
| 86 | 93 |
| 87 #endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_PREFERENCES_H_ | 94 #endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_PREFERENCES_H_ |
| OLD | NEW |