| Index: chrome/browser/pepper_flash_settings_helper.h
|
| diff --git a/chrome/browser/pepper_flash_settings_helper.h b/chrome/browser/pepper_flash_settings_helper.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e2d58a28eb13f81c9e9efb67eb3be54eec14d7cf
|
| --- /dev/null
|
| +++ b/chrome/browser/pepper_flash_settings_helper.h
|
| @@ -0,0 +1,32 @@
|
| +// 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_PEPPER_FLASH_SETTINGS_HELPER_H_
|
| +#define CHROME_BROWSER_PEPPER_FLASH_SETTINGS_HELPER_H_
|
| +#pragma once
|
| +
|
| +#include <string>
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "base/compiler_specific.h"
|
| +#include "chrome/browser/plugin_status_pref_setter.h"
|
| +
|
| +// Helper class to (asynchronously) update the preference specifying whether
|
| +// Pepper Flash is currently in use.
|
| +class PepperFlashSettingsHelper : public PluginStatusPrefSetter::Client {
|
| + public:
|
| + explicit PepperFlashSettingsHelper(const char* pref_name);
|
| + virtual ~PepperFlashSettingsHelper();
|
| +
|
| + // PluginStatusPrefSetter::Client implementation.
|
| + virtual const char* GetPrefName() const OVERRIDE;
|
| + virtual bool CalculatePrefValue(PluginPrefs* plugin_prefs) OVERRIDE;
|
| +
|
| + private:
|
| + std::string pref_name_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(PepperFlashSettingsHelper);
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_PEPPER_FLASH_SETTINGS_HELPER_H_
|
|
|