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

Side by Side Diff: chrome/browser/plugin_data_remover_helper.h

Issue 5278001: Add a preference to clear Flash LSO data in the Clear Browsing Data dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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) 2010 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_PLUGIN_DATA_REMOVER_HELPER_H_
6 #define CHROME_BROWSER_PLUGIN_DATA_REMOVER_HELPER_H_
7 #pragma once
8
9 #include "base/ref_counted.h"
10 #include "chrome/browser/prefs/pref_member.h"
11
12 class Profile;
13
14 // Helper class modeled after BooleanPrefMember to (asynchronously) update
15 // the preference specifying whether clearing plug-in data is supported
16 // by an installed plug-in.
17 // It should only be used from the UI thread. The client has to make sure that
18 // the passed PrefService outlives this object.
19
jochen (gone - plz use gerrit) 2010/11/24 19:03:07 no empty line
Bernhard Bauer 2010/11/29 10:45:23 Done.
20 class PluginDataRemoverHelper {
21 public:
22 PluginDataRemoverHelper();
23 ~PluginDataRemoverHelper();
24
25 // Binds this object to the |pref_name| preference in |prefs|, notifying
26 // |observer| if the value changes.
27 // This fires off a request to the NPAPI::PluginList (via PluginDataRemover)
28 // on the FILE thread to get the list of installed plug-ins.
29 void Init(const char* pref_name,
30 PrefService* prefs,
31 NotificationObserver* observer);
32
33 bool GetValue() const { return pref_.GetValue(); }
34
35 private:
36 class Internal;
37
38 BooleanPrefMember pref_;
39 scoped_refptr<Internal> internal_;
40 };
jochen (gone - plz use gerrit) 2010/11/24 19:03:07 disallow copy and assign
Bernhard Bauer 2010/11/29 10:45:23 Done.
41
42 #endif // CHROME_BROWSER_PLUGIN_DATA_REMOVER_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698