Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: chrome/browser/media_galleries/media_galleries_preferences_factory.h

Issue 23727009: Cleanup: Remove chrome namespace for storage monitor and media galleries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nit Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_FACTORY_H_ 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_PREFERENCES_FACTORY_H_
6 #define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_PREFERENCES_FACTORY_H_ 6 #define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_PREFERENCES_FACTORY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "components/browser_context_keyed_service/browser_context_keyed_service _factory.h" 10 #include "components/browser_context_keyed_service/browser_context_keyed_service _factory.h"
11 11
12 class MediaGalleriesPreferences;
12 class Profile; 13 class Profile;
13 14
14 namespace chrome {
15 class MediaGalleriesPreferences;
16 }
17
18 // Singleton that owns all MediaGalleriesPreferences and associates them with 15 // Singleton that owns all MediaGalleriesPreferences and associates them with
19 // Profiles. 16 // Profiles.
20 class MediaGalleriesPreferencesFactory 17 class MediaGalleriesPreferencesFactory
21 : public BrowserContextKeyedServiceFactory { 18 : public BrowserContextKeyedServiceFactory {
22 public: 19 public:
23 // Use MediaFileSystemRegistry::GetPreferences() to get 20 // Use MediaFileSystemRegistry::GetPreferences() to get
24 // MediaGalleriesPreferences. 21 // MediaGalleriesPreferences.
25 static chrome::MediaGalleriesPreferences* GetForProfile(Profile* profile); 22 static MediaGalleriesPreferences* GetForProfile(Profile* profile);
26 23
27 static MediaGalleriesPreferencesFactory* GetInstance(); 24 static MediaGalleriesPreferencesFactory* GetInstance();
28 25
29 private: 26 private:
30 friend struct DefaultSingletonTraits<MediaGalleriesPreferencesFactory>; 27 friend struct DefaultSingletonTraits<MediaGalleriesPreferencesFactory>;
31 28
32 MediaGalleriesPreferencesFactory(); 29 MediaGalleriesPreferencesFactory();
33 virtual ~MediaGalleriesPreferencesFactory(); 30 virtual ~MediaGalleriesPreferencesFactory();
34 31
35 // BrowserContextKeyedServiceFactory: 32 // BrowserContextKeyedServiceFactory:
36 virtual BrowserContextKeyedService* BuildServiceInstanceFor( 33 virtual BrowserContextKeyedService* BuildServiceInstanceFor(
37 content::BrowserContext* profile) const OVERRIDE; 34 content::BrowserContext* profile) const OVERRIDE;
38 virtual void RegisterProfilePrefs( 35 virtual void RegisterProfilePrefs(
39 user_prefs::PrefRegistrySyncable* registry) OVERRIDE; 36 user_prefs::PrefRegistrySyncable* registry) OVERRIDE;
40 virtual content::BrowserContext* GetBrowserContextToUse( 37 virtual content::BrowserContext* GetBrowserContextToUse(
41 content::BrowserContext* context) const OVERRIDE; 38 content::BrowserContext* context) const OVERRIDE;
42 39
43 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesPreferencesFactory); 40 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesPreferencesFactory);
44 }; 41 };
45 42
46 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_PREFERENCES_FACTORY_H_ 43 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_PREFERENCES_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698