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/string_util.h" | 7 #include "base/string_util.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "base/version.h" | 10 #include "base/version.h" |
11 #include "webkit/glue/plugins/plugin_list.h" | 11 #include "webkit/glue/plugins/plugin_list.h" |
12 | 12 |
13 #if defined(OS_MACOSX) | 13 #if defined(OS_MACOSX) |
14 // Plugin Groups for Mac. | 14 // Plugin Groups for Mac. |
15 // Plugins are listed here as soon as vulnerabilities and solutions | 15 // Plugins are listed here as soon as vulnerabilities and solutions |
16 // (new versions) are published. | 16 // (new versions) are published. |
17 // TODO(panayiotis): Track Java as soon as it's supported on Chrome Mac. | |
18 // TODO(panayiotis): Get the Real Player version on Mac, somehow. | 17 // TODO(panayiotis): Get the Real Player version on Mac, somehow. |
19 static const PluginGroupDefinition kGroupDefinitions[] = { | 18 static const PluginGroupDefinition kGroupDefinitions[] = { |
20 { "Quicktime", "QuickTime Plug-in", "", "", "7.6.6", | 19 { "Quicktime", "QuickTime Plug-in", "", "", "7.6.6", |
21 "http://www.apple.com/quicktime/download/" }, | 20 "http://www.apple.com/quicktime/download/" }, |
| 21 { "Java", "Java", "", "", "", |
| 22 "http://support.apple.com/kb/HT1338" }, |
22 { "Flash", "Shockwave Flash", "", "", "10.1.53", | 23 { "Flash", "Shockwave Flash", "", "", "10.1.53", |
23 "http://get.adobe.com/flashplayer/" }, | 24 "http://get.adobe.com/flashplayer/" }, |
24 { "Silverlight 3", "Silverlight", "0", "4", "3.0.50106.0", | 25 { "Silverlight 3", "Silverlight", "0", "4", "3.0.50106.0", |
25 "http://go.microsoft.com/fwlink/?LinkID=185927" }, | 26 "http://go.microsoft.com/fwlink/?LinkID=185927" }, |
26 { "Silverlight 4", "Silverlight", "4", "5", "", | 27 { "Silverlight 4", "Silverlight", "4", "5", "", |
27 "http://go.microsoft.com/fwlink/?LinkID=185927" }, | 28 "http://go.microsoft.com/fwlink/?LinkID=185927" }, |
28 { "Flip4Mac", "Flip4Mac", "", "", "2.2.1", | 29 { "Flip4Mac", "Flip4Mac", "", "", "2.2.1", |
29 "http://www.telestream.net/flip4mac-wmv/overview.htm" }, | 30 "http://www.telestream.net/flip4mac-wmv/overview.htm" }, |
30 { "Shockwave", "Shockwave for Director", "", "", "11.5.7.609", | 31 { "Shockwave", "Shockwave for Director", "", "", "11.5.7.609", |
31 "http://www.adobe.com/shockwave/download/" } | 32 "http://www.adobe.com/shockwave/download/" } |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 web_plugin_infos_.begin(); | 335 web_plugin_infos_.begin(); |
335 it != web_plugin_infos_.end(); ++it) { | 336 it != web_plugin_infos_.end(); ++it) { |
336 if (enable && !IsPluginNameDisabledByPolicy(it->name)) { | 337 if (enable && !IsPluginNameDisabledByPolicy(it->name)) { |
337 NPAPI::PluginList::Singleton()->EnablePlugin(FilePath(it->path)); | 338 NPAPI::PluginList::Singleton()->EnablePlugin(FilePath(it->path)); |
338 } else { | 339 } else { |
339 NPAPI::PluginList::Singleton()->DisablePlugin(FilePath(it->path)); | 340 NPAPI::PluginList::Singleton()->DisablePlugin(FilePath(it->path)); |
340 } | 341 } |
341 } | 342 } |
342 } | 343 } |
343 | 344 |
OLD | NEW |