| OLD | NEW |
| 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 "content/common/plugin_list.h" | 5 #include "content/common/plugin_list.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/file_version_info.h" | 10 #include "base/file_version_info.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "base/win/registry.h" | 21 #include "base/win/registry.h" |
| 22 #include "base/win/scoped_handle.h" | 22 #include "base/win/scoped_handle.h" |
| 23 #include "base/win/windows_version.h" | 23 #include "base/win/windows_version.h" |
| 24 #include "content/common/plugin_constants_win.h" | 24 #include "content/common/plugin_constants_win.h" |
| 25 | 25 |
| 26 namespace content { | 26 namespace content { |
| 27 namespace { | 27 namespace { |
| 28 | 28 |
| 29 const base::char16 kRegistryApps[] = | 29 const base::char16 kRegistryApps[] = |
| 30 L"Software\\Microsoft\\Windows\\CurrentVersion\\App Paths"; | 30 L"Software\\Microsoft\\Windows\\CurrentVersion\\App Paths"; |
| 31 const base::char16 kRegistryFirefox[] = L"firefox.exe"; | |
| 32 const base::char16 kRegistryAcrobat[] = L"Acrobat.exe"; | 31 const base::char16 kRegistryAcrobat[] = L"Acrobat.exe"; |
| 33 const base::char16 kRegistryAcrobatReader[] = L"AcroRd32.exe"; | 32 const base::char16 kRegistryAcrobatReader[] = L"AcroRd32.exe"; |
| 34 const base::char16 kRegistryWindowsMedia[] = L"wmplayer.exe"; | 33 const base::char16 kRegistryWindowsMedia[] = L"wmplayer.exe"; |
| 35 const base::char16 kRegistryQuickTime[] = L"QuickTimePlayer.exe"; | 34 const base::char16 kRegistryQuickTime[] = L"QuickTimePlayer.exe"; |
| 36 const base::char16 kRegistryPath[] = L"Path"; | 35 const base::char16 kRegistryPath[] = L"Path"; |
| 37 const base::char16 kRegistryFirefoxInstalled[] = | 36 const base::char16 kRegistryFirefoxInstalled[] = |
| 38 L"SOFTWARE\\Mozilla\\Mozilla Firefox"; | 37 L"SOFTWARE\\Mozilla\\Mozilla Firefox"; |
| 39 const base::char16 kRegistryJava[] = | 38 const base::char16 kRegistryJava[] = |
| 40 L"Software\\JavaSoft\\Java Runtime Environment"; | 39 L"Software\\JavaSoft\\Java Runtime Environment"; |
| 41 const base::char16 kRegistryBrowserJavaVersion[] = L"BrowserJavaVersion"; | 40 const base::char16 kRegistryBrowserJavaVersion[] = L"BrowserJavaVersion"; |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 return false; | 478 return false; |
| 480 #else | 479 #else |
| 481 // The plugin in question could be a 64 bit plugin which we cannot load. | 480 // The plugin in question could be a 64 bit plugin which we cannot load. |
| 482 if (!IsValid32BitImage(base::MakeAbsoluteFilePath(plugin_path))) | 481 if (!IsValid32BitImage(base::MakeAbsoluteFilePath(plugin_path))) |
| 483 return false; | 482 return false; |
| 484 #endif | 483 #endif |
| 485 return true; | 484 return true; |
| 486 } | 485 } |
| 487 | 486 |
| 488 } // namespace content | 487 } // namespace content |
| OLD | NEW |