Index: chrome/browser/media_gallery/media_galleries_preferences.h |
diff --git a/chrome/browser/media_gallery/media_gallery_registry.h b/chrome/browser/media_gallery/media_galleries_preferences.h |
similarity index 82% |
rename from chrome/browser/media_gallery/media_gallery_registry.h |
rename to chrome/browser/media_gallery/media_galleries_preferences.h |
index f6bebe5e49b9870ecc230cfdc2b7a60aa47e7df6..495501f9fd4705acfe49e4f963b5932ef4d1abef 100644 |
--- a/chrome/browser/media_gallery/media_gallery_registry.h |
+++ b/chrome/browser/media_gallery/media_galleries_preferences.h |
@@ -2,8 +2,8 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERY_REGISTRY_H_ |
-#define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERY_REGISTRY_H_ |
+#ifndef CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_PREFERENCES_H_ |
+#define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_PREFERENCES_H_ |
#include <list> |
#include <string> |
@@ -44,10 +44,12 @@ struct MediaGallery { |
// A class to manage the media galleries that the user has added, explicitly or |
// otherwise. There is one registry per user profile. |
// TODO(estade): should MediaFileSystemRegistry be merged into this class? |
-class MediaGalleryRegistry : public ProfileKeyedService { |
+class MediaGalleriesPreferences : public ProfileKeyedService { |
public: |
- explicit MediaGalleryRegistry(Profile* profile); |
- virtual ~MediaGalleryRegistry(); |
+ typedef std::list<MediaGallery> MediaGalleries; |
+ |
+ explicit MediaGalleriesPreferences(Profile* profile); |
+ virtual ~MediaGalleriesPreferences(); |
// Builds |remembered_galleries_| from the persistent store. |
void InitFromPrefs(); |
@@ -59,8 +61,6 @@ class MediaGalleryRegistry : public ProfileKeyedService { |
// Removes the gallery identified by |id| from the store. |
void ForgetGalleryById(uint64 id); |
- typedef std::list<MediaGallery> MediaGalleries; |
- |
const MediaGalleries& remembered_galleries() const { |
return remembered_galleries_; |
} |
@@ -81,7 +81,7 @@ class MediaGalleryRegistry : public ProfileKeyedService { |
// TODO(estade): either actually use this, or remove it. |
MediaGalleries remembered_galleries_; |
- DISALLOW_COPY_AND_ASSIGN(MediaGalleryRegistry); |
+ DISALLOW_COPY_AND_ASSIGN(MediaGalleriesPreferences); |
}; |
-#endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERY_REGISTRY_H_ |
+#endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_PREFERENCES_H_ |