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

Side by Side Diff: chrome/browser/plugins/plugin_prefs.h

Issue 12316081: Revert 180288 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/plugins/plugin_prefs.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_PLUGINS_PLUGIN_PREFS_H_ 5 #ifndef CHROME_BROWSER_PLUGINS_PLUGIN_PREFS_H_
6 #define CHROME_BROWSER_PLUGINS_PLUGIN_PREFS_H_ 6 #define CHROME_BROWSER_PLUGINS_PLUGIN_PREFS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // some plugins in sync with each other. 92 // some plugins in sync with each other.
93 class PluginState { 93 class PluginState {
94 public: 94 public:
95 PluginState(); 95 PluginState();
96 ~PluginState(); 96 ~PluginState();
97 97
98 // Returns whether |plugin| is found. If |plugin| cannot be found, 98 // Returns whether |plugin| is found. If |plugin| cannot be found,
99 // |*enabled| won't be touched. 99 // |*enabled| won't be touched.
100 bool Get(const base::FilePath& plugin, bool* enabled) const; 100 bool Get(const base::FilePath& plugin, bool* enabled) const;
101 void Set(const base::FilePath& plugin, bool enabled); 101 void Set(const base::FilePath& plugin, bool enabled);
102 // It is similar to Set(), except that it does nothing if |plugin| needs to
103 // be converted to a different key.
104 void SetIgnorePseudoKey(const base::FilePath& plugin, bool enabled);
102 105
103 private: 106 private:
104 base::FilePath ConvertMapKey(const base::FilePath& plugin) const; 107 base::FilePath ConvertMapKey(const base::FilePath& plugin) const;
105 108
106 std::map<base::FilePath, bool> state_; 109 std::map<base::FilePath, bool> state_;
107 }; 110 };
108 111
109 virtual ~PluginPrefs(); 112 virtual ~PluginPrefs();
110 113
111 // Called to update one of the policy_xyz patterns below when a 114 // Called to update one of the policy_xyz patterns below when a
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 // PluginList to use for testing. If this is NULL, defaults to the global 173 // PluginList to use for testing. If this is NULL, defaults to the global
171 // singleton. 174 // singleton.
172 webkit::npapi::PluginList* plugin_list_; 175 webkit::npapi::PluginList* plugin_list_;
173 176
174 PrefChangeRegistrar registrar_; 177 PrefChangeRegistrar registrar_;
175 178
176 DISALLOW_COPY_AND_ASSIGN(PluginPrefs); 179 DISALLOW_COPY_AND_ASSIGN(PluginPrefs);
177 }; 180 };
178 181
179 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_PREFS_H_ 182 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_PREFS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/plugins/plugin_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698