| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_PEPPER_FLASH_SETTINGS_HELPER_H_ |
| 6 #define CHROME_BROWSER_PEPPER_FLASH_SETTINGS_HELPER_H_ |
| 7 #pragma once |
| 8 |
| 9 #include <string> |
| 10 |
| 11 #include "base/basictypes.h" |
| 12 #include "base/compiler_specific.h" |
| 13 #include "chrome/browser/plugin_status_pref_setter.h" |
| 14 |
| 15 // Helper class to (asynchronously) update the preference specifying whether |
| 16 // Pepper Flash is currently in use. |
| 17 class PepperFlashSettingsHelper : public PluginStatusPrefSetter::Client { |
| 18 public: |
| 19 explicit PepperFlashSettingsHelper(const char* pref_name); |
| 20 virtual ~PepperFlashSettingsHelper(); |
| 21 |
| 22 // PluginStatusPrefSetter::Client implementation. |
| 23 virtual const char* GetPrefName() const OVERRIDE; |
| 24 virtual bool CalculatePrefValue(PluginPrefs* plugin_prefs) OVERRIDE; |
| 25 |
| 26 private: |
| 27 std::string pref_name_; |
| 28 |
| 29 DISALLOW_COPY_AND_ASSIGN(PepperFlashSettingsHelper); |
| 30 }; |
| 31 |
| 32 #endif // CHROME_BROWSER_PEPPER_FLASH_SETTINGS_HELPER_H_ |
| OLD | NEW |