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

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

Issue 5699005: Policy: Re-enabled plugin still disabled (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleaned up WebPluginInfo and rebased on fixed PluginGroup::InitFrom. Created 10 years 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
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 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 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_PLUGIN_UPDATER_H_ 5 #ifndef CHROME_BROWSER_PLUGIN_UPDATER_H_
6 #define CHROME_BROWSER_PLUGIN_UPDATER_H_ 6 #define CHROME_BROWSER_PLUGIN_UPDATER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 17 matching lines...) Expand all
28 28
29 class PluginUpdater : public NotificationObserver { 29 class PluginUpdater : public NotificationObserver {
30 public: 30 public:
31 // Get a list of all the plugin groups. The caller should take ownership 31 // Get a list of all the plugin groups. The caller should take ownership
32 // of the returned ListValue. 32 // of the returned ListValue.
33 static ListValue* GetPluginGroupsData(); 33 static ListValue* GetPluginGroupsData();
34 34
35 // Enable or disable a plugin group. 35 // Enable or disable a plugin group.
36 void EnablePluginGroup(bool enable, const string16& group_name); 36 void EnablePluginGroup(bool enable, const string16& group_name);
37 37
38 // Enable or disable a specific plugin file. 38 // Enable or disable a specific plugin file. If this function is called for
39 void EnablePluginFile(bool enable, const FilePath::StringType& file_path); 39 // setting the state of a plugin that has not been loaded yet (as is the case)
Bernhard Bauer 2010/12/21 19:07:39 Nit: extend parenthesis to include "with policy co
pastarmovj 2010/12/23 13:00:19 Done.
40 // with policy controlled plugins then the |name| parameter must be set to the
41 // plugin name so that the right group for the plugin can be found/created.
42 // If this function is called for a loaded plugin (UI call) |name| can be left
43 // empty.
44 void EnablePlugin(bool enable,
45 const FilePath::StringType& file_path,
46 const string16& name);
40 47
41 // Disable all plugin groups as defined by the user's preference file. 48 // Disable all plugin groups as defined by the user's preference file.
42 void DisablePluginGroupsFromPrefs(Profile* profile); 49 void DisablePluginGroupsFromPrefs(Profile* profile);
43 50
44 // Write the enable/disable status to the user's preference file. 51 // Write the enable/disable status to the user's preference file.
45 void UpdatePreferences(Profile* profile, int delay_ms); 52 void UpdatePreferences(Profile* profile, int delay_ms);
46 53
47 // NotificationObserver method overrides 54 // NotificationObserver method overrides
48 virtual void Observe(NotificationType type, 55 virtual void Observe(NotificationType type,
49 const NotificationSource& source, 56 const NotificationSource& source,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // Note: if you change this to false from true, you must update 92 // Note: if you change this to false from true, you must update
86 // kPluginsEnabledInternalPDF to be a new name (i.e. add 2, 3, 4...) at end. 93 // kPluginsEnabledInternalPDF to be a new name (i.e. add 2, 3, 4...) at end.
87 bool enable_internal_pdf_; 94 bool enable_internal_pdf_;
88 95
89 bool notify_pending_; 96 bool notify_pending_;
90 97
91 DISALLOW_COPY_AND_ASSIGN(PluginUpdater); 98 DISALLOW_COPY_AND_ASSIGN(PluginUpdater);
92 }; 99 };
93 100
94 #endif // CHROME_BROWSER_PLUGIN_UPDATER_H_ 101 #endif // CHROME_BROWSER_PLUGIN_UPDATER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698