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_PLUGINS_PLUGIN_PREFS_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_PLUGINS_PLUGIN_PREFS_FACTORY_H_ |
6 #define CHROME_BROWSER_PLUGINS_PLUGIN_PREFS_FACTORY_H_ | 6 #define CHROME_BROWSER_PLUGINS_PLUGIN_PREFS_FACTORY_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
10 #include "components/keyed_service/content/refcounted_browser_context_keyed_serv
ice_factory.h" | 10 #include "components/keyed_service/content/refcounted_browser_context_keyed_serv
ice_factory.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 // Helper method for PluginPrefs::GetForTestingProfile. | 25 // Helper method for PluginPrefs::GetForTestingProfile. |
26 static scoped_refptr<RefcountedBrowserContextKeyedService> | 26 static scoped_refptr<RefcountedBrowserContextKeyedService> |
27 CreateForTestingProfile(content::BrowserContext* profile); | 27 CreateForTestingProfile(content::BrowserContext* profile); |
28 | 28 |
29 PluginPrefsFactory(); | 29 PluginPrefsFactory(); |
30 virtual ~PluginPrefsFactory(); | 30 virtual ~PluginPrefsFactory(); |
31 | 31 |
32 // RefcountedBrowserContextKeyedServiceFactory methods: | 32 // RefcountedBrowserContextKeyedServiceFactory methods: |
33 virtual scoped_refptr<RefcountedBrowserContextKeyedService> | 33 virtual scoped_refptr<RefcountedBrowserContextKeyedService> |
34 BuildServiceInstanceFor(content::BrowserContext* context) const OVERRIDE; | 34 BuildServiceInstanceFor(content::BrowserContext* context) const override; |
35 | 35 |
36 // BrowserContextKeyedServiceFactory methods: | 36 // BrowserContextKeyedServiceFactory methods: |
37 virtual void RegisterProfilePrefs( | 37 virtual void RegisterProfilePrefs( |
38 user_prefs::PrefRegistrySyncable* registry) OVERRIDE; | 38 user_prefs::PrefRegistrySyncable* registry) override; |
39 virtual content::BrowserContext* GetBrowserContextToUse( | 39 virtual content::BrowserContext* GetBrowserContextToUse( |
40 content::BrowserContext* context) const OVERRIDE; | 40 content::BrowserContext* context) const override; |
41 virtual bool ServiceIsNULLWhileTesting() const OVERRIDE; | 41 virtual bool ServiceIsNULLWhileTesting() const override; |
42 virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE; | 42 virtual bool ServiceIsCreatedWithBrowserContext() const override; |
43 }; | 43 }; |
44 | 44 |
45 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_PREFS_FACTORY_H_ | 45 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_PREFS_FACTORY_H_ |
OLD | NEW |