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

Side by Side Diff: webkit/plugins/npapi/plugin_list.cc

Issue 9348024: Infobar the NVIDIA 3D vision plug-ins. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | no next file » | 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 #include "webkit/plugins/npapi/plugin_list.h" 5 #include "webkit/plugins/npapi/plugin_list.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 }; 137 };
138 static const VersionRangeDefinition kDivXVersionRange[] = { 138 static const VersionRangeDefinition kDivXVersionRange[] = {
139 { "", "", "1.4.3.4", false } 139 { "", "", "1.4.3.4", false }
140 }; 140 };
141 static const VersionRangeDefinition kRealPlayerVersionRange[] = { 141 static const VersionRangeDefinition kRealPlayerVersionRange[] = {
142 { "", "", "12.0.1.666", true } 142 { "", "", "12.0.1.666", true }
143 }; 143 };
144 static const VersionRangeDefinition kWindowsMediaPlayerVersionRange[] = { 144 static const VersionRangeDefinition kWindowsMediaPlayerVersionRange[] = {
145 { "", "", "", true } 145 { "", "", "", true }
146 }; 146 };
147 static const VersionRangeDefinition kNvidia3DVersionRange[] = {
148 { "", "", "", true }
149 };
147 static const PluginGroupDefinition kGroupDefinitions[] = { 150 static const PluginGroupDefinition kGroupDefinitions[] = {
148 kFlashDefinition, 151 kFlashDefinition,
149 { "apple-quicktime", PluginGroup::kQuickTimeGroupName, "QuickTime Plug-in", 152 { "apple-quicktime", PluginGroup::kQuickTimeGroupName, "QuickTime Plug-in",
150 kQuicktimeVersionRange, arraysize(kQuicktimeVersionRange), 153 kQuicktimeVersionRange, arraysize(kQuicktimeVersionRange),
151 "http://www.apple.com/quicktime/download/" }, 154 "http://www.apple.com/quicktime/download/" },
152 { "java-runtime-environment", PluginGroup::kJavaGroupName, "Java", 155 { "java-runtime-environment", PluginGroup::kJavaGroupName, "Java",
153 kJavaVersionRange, arraysize(kJavaVersionRange), 156 kJavaVersionRange, arraysize(kJavaVersionRange),
154 "http://www.java.com/download" }, 157 "http://www.java.com/download" },
155 { "adobe-reader", PluginGroup::kAdobeReaderGroupName, "Adobe Acrobat", 158 { "adobe-reader", PluginGroup::kAdobeReaderGroupName, "Adobe Acrobat",
156 kAdobeReaderVersionRange, arraysize(kAdobeReaderVersionRange), 159 kAdobeReaderVersionRange, arraysize(kAdobeReaderVersionRange),
157 "http://get.adobe.com/reader/" }, 160 "http://get.adobe.com/reader/" },
158 kSilverlightDefinition, 161 kSilverlightDefinition,
159 kShockwaveDefinition, 162 kShockwaveDefinition,
160 { "divx-player", "DivX Player", "DivX Web Player", kDivXVersionRange, 163 { "divx-player", "DivX Player", "DivX Web Player", kDivXVersionRange,
161 arraysize(kDivXVersionRange), 164 arraysize(kDivXVersionRange),
162 "http://download.divx.com/divx/autoupdate/player/" 165 "http://download.divx.com/divx/autoupdate/player/"
163 "DivXWebPlayerInstaller.exe" }, 166 "DivXWebPlayerInstaller.exe" },
164 { "realplayer", PluginGroup::kRealPlayerGroupName, "RealPlayer", 167 { "realplayer", PluginGroup::kRealPlayerGroupName, "RealPlayer",
165 kRealPlayerVersionRange, arraysize(kRealPlayerVersionRange), 168 kRealPlayerVersionRange, arraysize(kRealPlayerVersionRange),
166 "http://www.real.com/realplayer/download" }, 169 "http://www.real.com/realplayer/download" },
167 // These are here for grouping, no vulnerabilities known. 170 // These are here for grouping, no vulnerabilities known.
168 { "windows-media-player", PluginGroup::kWindowsMediaPlayerGroupName, 171 { "windows-media-player", PluginGroup::kWindowsMediaPlayerGroupName,
169 "Windows Media Player", kWindowsMediaPlayerVersionRange, 172 "Windows Media Player", kWindowsMediaPlayerVersionRange,
170 arraysize(kWindowsMediaPlayerVersionRange), "" }, 173 arraysize(kWindowsMediaPlayerVersionRange), "" },
171 { "microsoft-office", "Microsoft Office", "Microsoft Office", 174 { "microsoft-office", "Microsoft Office", "Microsoft Office",
172 NULL, 0, "" }, 175 NULL, 0, "" },
176 { "nvidia-3d", "NVIDIA 3D", "NVIDIA 3D", kNvidia3DVersionRange,
177 arraysize(kNvidia3DVersionRange), "" },
173 }; 178 };
174 179
175 #elif defined(OS_CHROMEOS) 180 #elif defined(OS_CHROMEOS)
176 // ChromeOS generally has (autoupdated) system plug-ins and no user-installable 181 // ChromeOS generally has (autoupdated) system plug-ins and no user-installable
177 // plug-ins. 182 // plug-ins.
178 static const PluginGroupDefinition kGroupDefinitions[] = { }; 183 static const PluginGroupDefinition kGroupDefinitions[] = { };
179 184
180 #else // Most importantly, covers desktop Linux. 185 #else // Most importantly, covers desktop Linux.
181 static const VersionRangeDefinition kJavaVersionRange[] = { 186 static const VersionRangeDefinition kJavaVersionRange[] = {
182 { "0", "1.7", "1.6.0.29", true }, 187 { "0", "1.7", "1.6.0.29", true },
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 } 701 }
697 return false; 702 return false;
698 } 703 }
699 704
700 PluginList::~PluginList() { 705 PluginList::~PluginList() {
701 } 706 }
702 707
703 708
704 } // namespace npapi 709 } // namespace npapi
705 } // namespace webkit 710 } // namespace webkit
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698