OLD | NEW |
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" |
11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
12 #include "base/registry.h" | 12 #include "base/registry.h" |
13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
14 #include "webkit/activex_shim/npp_impl.h" | 14 #include "webkit/activex_shim/npp_impl.h" |
15 #include "webkit/glue/plugins/plugin_constants_win.h" | 15 #include "webkit/glue/plugins/plugin_constants_win.h" |
16 #include "webkit/glue/plugins/plugin_lib.h" | 16 #include "webkit/glue/plugins/plugin_lib.h" |
17 #include "webkit/glue/webkit_glue.h" | 17 #include "webkit/glue/webkit_glue.h" |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 const TCHAR kRegistryApps[] = | 21 const TCHAR kRegistryApps[] = |
22 _T("Software\\Microsoft\\Windows\\CurrentVersion\\App Paths"); | 22 _T("Software\\Microsoft\\Windows\\CurrentVersion\\App Paths"); |
23 const TCHAR kRegistryFirefox[] = _T("firefox.exe"); | 23 const TCHAR kRegistryFirefox[] = _T("firefox.exe"); |
24 const TCHAR kRegistryAcrobat[] = _T("Acrobat.exe"); | 24 const TCHAR kRegistryAcrobat[] = _T("Acrobat.exe"); |
25 const TCHAR kRegistryAcrobatReader[] = _T("AcroRd32.exe"); | 25 const TCHAR kRegistryAcrobatReader[] = _T("AcroRd32.exe"); |
26 const TCHAR kRegistryWindowsMedia[] = _T("wmplayer.exe"); | 26 const TCHAR kRegistryWindowsMedia[] = _T("wmplayer.exe"); |
27 const TCHAR kRegistryQuickTime[] = _T("QuickTimePlayer.exe"); | 27 const TCHAR kRegistryQuickTime[] = _T("QuickTimePlayer.exe"); |
28 const TCHAR kRegistryPath[] = _T("Path"); | 28 const TCHAR kRegistryPath[] = _T("Path"); |
29 const TCHAR kRegistryMozillaPlugins[] = _T("SOFTWARE\\MozillaPlugins"); | |
30 const TCHAR kRegistryFirefoxInstalled[] = | 29 const TCHAR kRegistryFirefoxInstalled[] = |
31 _T("SOFTWARE\\Mozilla\\Mozilla Firefox"); | 30 _T("SOFTWARE\\Mozilla\\Mozilla Firefox"); |
32 const TCHAR kMozillaActiveXPlugin[] = _T("npmozax.dll"); | 31 const TCHAR kMozillaActiveXPlugin[] = _T("npmozax.dll"); |
33 const TCHAR kNewWMPPlugin[] = _T("np-mswmp.dll"); | 32 const TCHAR kNewWMPPlugin[] = _T("np-mswmp.dll"); |
34 const TCHAR kOldWMPPlugin[] = _T("npdsplay.dll"); | 33 const TCHAR kOldWMPPlugin[] = _T("npdsplay.dll"); |
35 const TCHAR kYahooApplicationStatePlugin[] = _T("npystate.dll"); | 34 const TCHAR kYahooApplicationStatePlugin[] = _T("npystate.dll"); |
36 const TCHAR kWanWangProtocolHandlerPlugin[] = _T("npww.dll"); | 35 const TCHAR kWanWangProtocolHandlerPlugin[] = _T("npww.dll"); |
37 const TCHAR kRegistryJava[] = | 36 const TCHAR kRegistryJava[] = |
38 _T("Software\\JavaSoft\\Java Runtime Environment"); | 37 _T("Software\\JavaSoft\\Java Runtime Environment"); |
39 const TCHAR kRegistryBrowserJavaVersion[] = _T("BrowserJavaVersion"); | 38 const TCHAR kRegistryBrowserJavaVersion[] = _T("BrowserJavaVersion"); |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 #endif | 382 #endif |
384 | 383 |
385 if (!use_internal_activex_shim_) | 384 if (!use_internal_activex_shim_) |
386 return; | 385 return; |
387 | 386 |
388 LoadPlugin(FilePath(kActiveXShimFileName)); | 387 LoadPlugin(FilePath(kActiveXShimFileName)); |
389 LoadPlugin(FilePath(kActiveXShimFileNameForMediaPlayer)); | 388 LoadPlugin(FilePath(kActiveXShimFileNameForMediaPlayer)); |
390 } | 389 } |
391 | 390 |
392 } // namespace NPAPI | 391 } // namespace NPAPI |
OLD | NEW |