diff options
author | ibraaaa@google.com <ibraaaa@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-20 20:53:18 +0000 |
---|---|---|
committer | ibraaaa@google.com <ibraaaa@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-20 20:53:18 +0000 |
commit | 0f5e57f515094790fe2a8d638213c25314b8d3e8 (patch) | |
tree | 0f840c7ba459b30ba27d68929f2d7d5c6b01e41d /chrome/browser/plugins/plugin_prefs_factory.h | |
parent | 67990d826888e15984ffe09c85ecf7796fb18a79 (diff) | |
download | chromium_src-0f5e57f515094790fe2a8d638213c25314b8d3e8.zip chromium_src-0f5e57f515094790fe2a8d638213c25314b8d3e8.tar.gz chromium_src-0f5e57f515094790fe2a8d638213c25314b8d3e8.tar.bz2 |
Move chrome/browser/plugin_* to chrome/browser/plugins/
TBR=jhawkins@chromium.org
BUG=124396
Review URL: https://chromiumcodereview.appspot.com/10933044
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157834 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/plugins/plugin_prefs_factory.h')
-rw-r--r-- | chrome/browser/plugins/plugin_prefs_factory.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/chrome/browser/plugins/plugin_prefs_factory.h b/chrome/browser/plugins/plugin_prefs_factory.h new file mode 100644 index 0000000..ae6e080 --- /dev/null +++ b/chrome/browser/plugins/plugin_prefs_factory.h @@ -0,0 +1,45 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_BROWSER_PLUGINS_PLUGIN_PREFS_FACTORY_H_ +#define CHROME_BROWSER_PLUGINS_PLUGIN_PREFS_FACTORY_H_ + +#include "base/compiler_specific.h" +#include "base/memory/singleton.h" +#include "chrome/browser/profiles/refcounted_profile_keyed_service_factory.h" + +class PluginPrefs; +class PrefService; +class Profile; +class ProfileKeyedService; + +class PluginPrefsFactory : public RefcountedProfileKeyedServiceFactory { + public: + static scoped_refptr<PluginPrefs> GetPrefsForProfile(Profile* profile); + + static PluginPrefsFactory* GetInstance(); + + private: + friend class PluginPrefs; + friend struct DefaultSingletonTraits<PluginPrefsFactory>; + + // Helper method for PluginPrefs::GetForTestingProfile. + static scoped_refptr<RefcountedProfileKeyedService> CreateForTestingProfile( + Profile* profile); + + PluginPrefsFactory(); + virtual ~PluginPrefsFactory(); + + // RefcountedProfileKeyedServiceFactory methods: + virtual scoped_refptr<RefcountedProfileKeyedService> BuildServiceInstanceFor( + Profile* profile) const OVERRIDE; + + // ProfileKeyedServiceFactory methods: + virtual void RegisterUserPrefs(PrefService* prefs) OVERRIDE; + virtual bool ServiceRedirectedInIncognito() const OVERRIDE; + virtual bool ServiceIsNULLWhileTesting() const OVERRIDE; + virtual bool ServiceIsCreatedWithProfile() const OVERRIDE; +}; + +#endif // CHROME_BROWSER_PLUGINS_PLUGIN_PREFS_FACTORY_H_ |