OLD | NEW |
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 #include "chrome/common/plugin_group.h" | 5 #include "chrome/common/plugin_group.h" |
6 | 6 |
| 7 #include "base/linked_ptr.h" |
7 #include "base/string_util.h" | 8 #include "base/string_util.h" |
8 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
9 #include "base/values.h" | 10 #include "base/values.h" |
10 #include "base/version.h" | 11 #include "base/version.h" |
11 #include "webkit/glue/plugins/plugin_list.h" | 12 #include "webkit/glue/plugins/plugin_list.h" |
| 13 #include "webkit/glue/plugins/webplugininfo.h" |
12 | 14 |
13 #if defined(OS_MACOSX) | 15 #if defined(OS_MACOSX) |
14 // Plugin Groups for Mac. | 16 // Plugin Groups for Mac. |
15 // Plugins are listed here as soon as vulnerabilities and solutions | 17 // Plugins are listed here as soon as vulnerabilities and solutions |
16 // (new versions) are published. | 18 // (new versions) are published. |
17 // TODO(panayiotis): Get the Real Player version on Mac, somehow. | 19 // TODO(panayiotis): Get the Real Player version on Mac, somehow. |
18 static const PluginGroupDefinition kGroupDefinitions[] = { | 20 static const PluginGroupDefinition kGroupDefinitions[] = { |
19 { "Quicktime", "QuickTime Plug-in", "", "", "7.6.6", | 21 { "Quicktime", "QuickTime Plug-in", "", "", "7.6.6", |
20 "http://www.apple.com/quicktime/download/" }, | 22 "http://www.apple.com/quicktime/download/" }, |
21 { "Java", "Java", "", "", "", | 23 { "Java", "Java", "", "", "", |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 for (std::vector<WebPluginInfo>::const_iterator it = | 369 for (std::vector<WebPluginInfo>::const_iterator it = |
368 web_plugin_infos_.begin(); | 370 web_plugin_infos_.begin(); |
369 it != web_plugin_infos_.end(); ++it) { | 371 it != web_plugin_infos_.end(); ++it) { |
370 if (enable && !IsPluginNameDisabledByPolicy(it->name)) { | 372 if (enable && !IsPluginNameDisabledByPolicy(it->name)) { |
371 NPAPI::PluginList::Singleton()->EnablePlugin(it->path); | 373 NPAPI::PluginList::Singleton()->EnablePlugin(it->path); |
372 } else { | 374 } else { |
373 NPAPI::PluginList::Singleton()->DisablePlugin(it->path); | 375 NPAPI::PluginList::Singleton()->DisablePlugin(it->path); |
374 } | 376 } |
375 } | 377 } |
376 } | 378 } |
OLD | NEW |