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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698