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" |
(...skipping 10 matching lines...) Expand all Loading... |
21 { "Java", "Java", "", "", "", | 21 { "Java", "Java", "", "", "", |
22 "http://support.apple.com/kb/HT1338" }, | 22 "http://support.apple.com/kb/HT1338" }, |
23 { "Flash", "Shockwave Flash", "", "", "10.1.82", | 23 { "Flash", "Shockwave Flash", "", "", "10.1.82", |
24 "http://get.adobe.com/flashplayer/" }, | 24 "http://get.adobe.com/flashplayer/" }, |
25 { "Silverlight 3", "Silverlight", "0", "4", "3.0.50106.0", | 25 { "Silverlight 3", "Silverlight", "0", "4", "3.0.50106.0", |
26 "http://go.microsoft.com/fwlink/?LinkID=185927" }, | 26 "http://go.microsoft.com/fwlink/?LinkID=185927" }, |
27 { "Silverlight 4", "Silverlight", "4", "5", "", | 27 { "Silverlight 4", "Silverlight", "4", "5", "", |
28 "http://go.microsoft.com/fwlink/?LinkID=185927" }, | 28 "http://go.microsoft.com/fwlink/?LinkID=185927" }, |
29 { "Flip4Mac", "Flip4Mac", "", "", "2.2.1", | 29 { "Flip4Mac", "Flip4Mac", "", "", "2.2.1", |
30 "http://www.telestream.net/flip4mac-wmv/overview.htm" }, | 30 "http://www.telestream.net/flip4mac-wmv/overview.htm" }, |
31 { "Shockwave", "Shockwave for Director", "", "", "11.5.7.609", | 31 { "Shockwave", "Shockwave for Director", "", "", "11.5.8.612", |
32 "http://www.adobe.com/shockwave/download/" } | 32 "http://www.adobe.com/shockwave/download/" } |
33 }; | 33 }; |
34 | 34 |
35 #elif defined(OS_WIN) | 35 #elif defined(OS_WIN) |
36 // TODO(panayiotis): We should group "RealJukebox NS Plugin" with the rest of | 36 // TODO(panayiotis): We should group "RealJukebox NS Plugin" with the rest of |
37 // the RealPlayer files. | 37 // the RealPlayer files. |
38 static const PluginGroupDefinition kGroupDefinitions[] = { | 38 static const PluginGroupDefinition kGroupDefinitions[] = { |
39 { "Quicktime", "QuickTime Plug-in", "", "", "7.6.7", | 39 { "Quicktime", "QuickTime Plug-in", "", "", "7.6.7", |
40 "http://www.apple.com/quicktime/download/" }, | 40 "http://www.apple.com/quicktime/download/" }, |
41 { "Java 6", "Java", "", "6", "6.0.200", | 41 { "Java 6", "Java", "", "6", "6.0.200", |
42 "http://www.java.com/" }, | 42 "http://www.java.com/" }, |
43 { "Adobe Reader 9", "Adobe Acrobat", "9", "10", "9.3.3", | 43 { "Adobe Reader 9", "Adobe Acrobat", "9", "10", "9.3.3", |
44 "http://get.adobe.com/reader/" }, | 44 "http://get.adobe.com/reader/" }, |
45 { "Adobe Reader 8", "Adobe Acrobat", "0", "9", "8.2.3", | 45 { "Adobe Reader 8", "Adobe Acrobat", "0", "9", "8.2.3", |
46 "http://get.adobe.com/reader/" }, | 46 "http://get.adobe.com/reader/" }, |
47 { "Flash", "Shockwave Flash", "", "", "10.1.82", | 47 { "Flash", "Shockwave Flash", "", "", "10.1.82", |
48 "http://get.adobe.com/flashplayer/" }, | 48 "http://get.adobe.com/flashplayer/" }, |
49 { "Silverlight 3", "Silverlight", "0", "4", "3.0.50106.0", | 49 { "Silverlight 3", "Silverlight", "0", "4", "3.0.50106.0", |
50 "http://go.microsoft.com/fwlink/?LinkID=185927" }, | 50 "http://go.microsoft.com/fwlink/?LinkID=185927" }, |
51 { "Silverlight 4", "Silverlight", "4", "5", "", | 51 { "Silverlight 4", "Silverlight", "4", "5", "", |
52 "http://go.microsoft.com/fwlink/?LinkID=185927" }, | 52 "http://go.microsoft.com/fwlink/?LinkID=185927" }, |
53 { "Shockwave", "Shockwave for Director", "", "", "11.5.7.609", | 53 { "Shockwave", "Shockwave for Director", "", "", "11.5.8.612", |
54 "http://www.adobe.com/shockwave/download/" }, | 54 "http://www.adobe.com/shockwave/download/" }, |
55 { "DivX Player", "DivX Web Player", "", "", "1.4.3.4", | 55 { "DivX Player", "DivX Web Player", "", "", "1.4.3.4", |
56 "http://download.divx.com/divx/autoupdate/player/DivXWebPlayerInstaller.exe"
}, | 56 "http://download.divx.com/divx/autoupdate/player/DivXWebPlayerInstaller.exe"
}, |
57 // These are here for grouping, no vulnerabilies known. | 57 // These are here for grouping, no vulnerabilies known. |
58 { "Windows Media Player", "Windows Media Player", "", "", "", "" }, | 58 { "Windows Media Player", "Windows Media Player", "", "", "", "" }, |
59 { "Microsoft Office", "Microsoft Office", "", "", "", "" }, | 59 { "Microsoft Office", "Microsoft Office", "", "", "", "" }, |
60 // TODO(panayiotis): The vulnerable versions are | 60 // TODO(panayiotis): The vulnerable versions are |
61 // (v >= 6.0.12.1040 && v <= 6.0.12.1663) | 61 // (v >= 6.0.12.1040 && v <= 6.0.12.1663) |
62 // || v == 6.0.12.1698 || v == 6.0.12.1741 | 62 // || v == 6.0.12.1698 || v == 6.0.12.1741 |
63 { "RealPlayer", "RealPlayer", "", "", "", | 63 { "RealPlayer", "RealPlayer", "", "", "", |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 for (std::vector<WebPluginInfo>::const_iterator it = | 342 for (std::vector<WebPluginInfo>::const_iterator it = |
343 web_plugin_infos_.begin(); | 343 web_plugin_infos_.begin(); |
344 it != web_plugin_infos_.end(); ++it) { | 344 it != web_plugin_infos_.end(); ++it) { |
345 if (enable && !IsPluginNameDisabledByPolicy(it->name)) { | 345 if (enable && !IsPluginNameDisabledByPolicy(it->name)) { |
346 NPAPI::PluginList::Singleton()->EnablePlugin(FilePath(it->path)); | 346 NPAPI::PluginList::Singleton()->EnablePlugin(FilePath(it->path)); |
347 } else { | 347 } else { |
348 NPAPI::PluginList::Singleton()->DisablePlugin(FilePath(it->path)); | 348 NPAPI::PluginList::Singleton()->DisablePlugin(FilePath(it->path)); |
349 } | 349 } |
350 } | 350 } |
351 } | 351 } |
OLD | NEW |