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

Unified Diff: chrome/browser/pepper_flash_settings_helper.h

Issue 10387161: Pepper Flash settings integration: add UI for "deauthorize content licenses". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 7 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
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_

Powered by Google App Engine
This is Rietveld 408576698