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

Side by Side Diff: webkit/glue/plugins/plugin_list_win.cc

Issue 72004: Relanding the following revisions.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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 | « webkit/default_plugin/plugin_main.cc ('k') | webkit/glue/webframeloaderclient_impl.cc » ('j') | 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <tchar.h> 5 #include <tchar.h>
6 6
7 #include "webkit/glue/plugins/plugin_list.h" 7 #include "webkit/glue/plugins/plugin_list.h"
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 { 204 {
205 205
206 void PluginList::PlatformInit() { 206 void PluginList::PlatformInit() {
207 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 207 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
208 dont_load_new_wmp_ = command_line.HasSwitch(kUseOldWMPPluginSwitch); 208 dont_load_new_wmp_ = command_line.HasSwitch(kUseOldWMPPluginSwitch);
209 use_internal_activex_shim_ = 209 use_internal_activex_shim_ =
210 !command_line.HasSwitch(kNoNativeActiveXShimSwitch); 210 !command_line.HasSwitch(kNoNativeActiveXShimSwitch);
211 211
212 const PluginVersionInfo builtin_plugins[] = { 212 const PluginVersionInfo builtin_plugins[] = {
213 { 213 {
214 FilePath(kActiveXShimFileName),
215 L"ActiveX Plug-in",
216 L"ActiveX Plug-in provides a shim to support ActiveX controls",
217 L"1, 0, 0, 1",
218 L"application/x-oleobject|application/oleobject",
219 L"*|*",
220 L"",
221 {
222 activex_shim::ActiveX_Shim_NP_GetEntryPoints,
223 activex_shim::ActiveX_Shim_NP_Initialize,
224 activex_shim::ActiveX_Shim_NP_Shutdown
225 }
226 },
227 {
228 FilePath(kActiveXShimFileNameForMediaPlayer), 214 FilePath(kActiveXShimFileNameForMediaPlayer),
229 kActiveXShimFileNameForMediaPlayer, 215 kActiveXShimFileNameForMediaPlayer,
230 L"Windows Media Player", 216 L"Windows Media Player",
231 L"1, 0, 0, 1", 217 L"1, 0, 0, 1",
232 L"application/x-ms-wmp|application/asx|video/x-ms-asf-plugin|" 218 L"application/x-ms-wmp|application/asx|video/x-ms-asf-plugin|"
233 L"application/x-mplayer2|video/x-ms-asf|video/x-ms-wm|audio/x-ms-wma|" 219 L"application/x-mplayer2|video/x-ms-asf|video/x-ms-wm|audio/x-ms-wma|"
234 L"audio/x-ms-wax|video/x-ms-wmv|video/x-ms-wvx", 220 L"audio/x-ms-wax|video/x-ms-wmv|video/x-ms-wvx",
235 L"*|*|*|*|asf,asx,*|wm,*|wma,*|wax,*|wmv,*|wvx,*", 221 L"*|*|*|*|asf,asx,*|wm,*|wma,*|wax,*|wmv,*|wvx,*",
236 L"", 222 L"",
237 { 223 {
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 #endif 383 #endif
398 384
399 if (!use_internal_activex_shim_) 385 if (!use_internal_activex_shim_)
400 return; 386 return;
401 387
402 LoadPlugin(FilePath(kActiveXShimFileName)); 388 LoadPlugin(FilePath(kActiveXShimFileName));
403 LoadPlugin(FilePath(kActiveXShimFileNameForMediaPlayer)); 389 LoadPlugin(FilePath(kActiveXShimFileNameForMediaPlayer));
404 } 390 }
405 391
406 } // namespace NPAPI 392 } // namespace NPAPI
OLDNEW
« no previous file with comments | « webkit/default_plugin/plugin_main.cc ('k') | webkit/glue/webframeloaderclient_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698