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

Unified Diff: chrome/browser/plugin_status_pref_setter.h

Issue 10933044: Move chrome/browser/plugin_* to chrome/browser/plugins/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@remove_plugin_group
Patch Set: . Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/plugin_prefs_unittest.cc ('k') | chrome/browser/plugin_status_pref_setter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugin_status_pref_setter.h
diff --git a/chrome/browser/plugin_status_pref_setter.h b/chrome/browser/plugin_status_pref_setter.h
deleted file mode 100644
index 838128125c2e9d9008e92433e83f30ab8d7016a3..0000000000000000000000000000000000000000
--- a/chrome/browser/plugin_status_pref_setter.h
+++ /dev/null
@@ -1,71 +0,0 @@
-// 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_PLUGIN_STATUS_PREF_SETTER_H_
-#define CHROME_BROWSER_PLUGIN_STATUS_PREF_SETTER_H_
-
-#include <vector>
-
-#include "base/memory/ref_counted.h"
-#include "base/memory/weak_ptr.h"
-#include "chrome/browser/api/prefs/pref_member.h"
-#include "content/public/browser/notification_observer.h"
-#include "content/public/browser/notification_registrar.h"
-
-class PluginPrefs;
-class PrefService;
-class Profile;
-
-namespace webkit {
-struct WebPluginInfo;
-}
-
-// Helper class modeled after BooleanPrefMember to (asynchronously) update
-// preferences related to plugin enable status.
-// It should only be used from the UI thread. The client has to make sure that
-// the passed profile outlives this object.
-class PluginStatusPrefSetter : public content::NotificationObserver {
- public:
- PluginStatusPrefSetter();
- virtual ~PluginStatusPrefSetter();
-
- // Binds the preferences in the profile's PrefService, notifying |observer| if
- // any value changes.
- // This asynchronously calls the PluginService to get the list of installed
- // plug-ins.
- void Init(Profile* profile,
- content::NotificationObserver* observer);
-
- bool IsClearPluginLSODataEnabled() const {
- return clear_plugin_lso_data_enabled_.GetValue();
- }
-
- bool IsPepperFlashSettingsEnabled() const {
- return pepper_flash_settings_enabled_.GetValue();
- }
-
- // content::NotificationObserver methods:
- virtual void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) OVERRIDE;
-
- private:
- void StartUpdate();
- void GotPlugins(scoped_refptr<PluginPrefs> plugin_prefs,
- const std::vector<webkit::WebPluginInfo>& plugins);
-
- content::NotificationRegistrar registrar_;
- // Weak pointer.
- Profile* profile_;
- base::WeakPtrFactory<PluginStatusPrefSetter> factory_;
-
- // Whether clearing LSO data is supported.
- BooleanPrefMember clear_plugin_lso_data_enabled_;
- // Whether we should show Pepper Flash-specific settings.
- BooleanPrefMember pepper_flash_settings_enabled_;
-
- DISALLOW_COPY_AND_ASSIGN(PluginStatusPrefSetter);
-};
-
-#endif // CHROME_BROWSER_PLUGIN_STATUS_PREF_SETTER_H_
« no previous file with comments | « chrome/browser/plugin_prefs_unittest.cc ('k') | chrome/browser/plugin_status_pref_setter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698