| 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/browser/plugin_service_impl.h" | 5 #include "content/browser/plugin_service_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 void PluginServiceImpl::UnregisterInternalPlugin(const base::FilePath& path) { | 783 void PluginServiceImpl::UnregisterInternalPlugin(const base::FilePath& path) { |
| 784 PluginList::Singleton()->UnregisterInternalPlugin(path); | 784 PluginList::Singleton()->UnregisterInternalPlugin(path); |
| 785 } | 785 } |
| 786 | 786 |
| 787 void PluginServiceImpl::GetInternalPlugins( | 787 void PluginServiceImpl::GetInternalPlugins( |
| 788 std::vector<WebPluginInfo>* plugins) { | 788 std::vector<WebPluginInfo>* plugins) { |
| 789 PluginList::Singleton()->GetInternalPlugins(plugins); | 789 PluginList::Singleton()->GetInternalPlugins(plugins); |
| 790 } | 790 } |
| 791 | 791 |
| 792 bool PluginServiceImpl::NPAPIPluginsSupported() { | 792 bool PluginServiceImpl::NPAPIPluginsSupported() { |
| 793 #if defined(OS_WIN) || defined(OS_MACOSX) || (defined(OS_LINUX) && !defined(USE_
AURA)) | 793 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_BSD) || \ |
| 794 (defined(OS_LINUX) && !defined(USE_AURA)) |
| 794 return true; | 795 return true; |
| 795 #else | 796 #else |
| 796 return false; | 797 return false; |
| 797 #endif | 798 #endif |
| 798 } | 799 } |
| 799 | 800 |
| 800 void PluginServiceImpl::DisablePluginsDiscoveryForTesting() { | 801 void PluginServiceImpl::DisablePluginsDiscoveryForTesting() { |
| 801 PluginList::Singleton()->DisablePluginsDiscovery(); | 802 PluginList::Singleton()->DisablePluginsDiscovery(); |
| 802 } | 803 } |
| 803 | 804 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 window, kPluginVersionAtomProperty, plugin_version); | 838 window, kPluginVersionAtomProperty, plugin_version); |
| 838 return true; | 839 return true; |
| 839 } | 840 } |
| 840 | 841 |
| 841 bool PluginServiceImpl::IsPluginWindow(HWND window) { | 842 bool PluginServiceImpl::IsPluginWindow(HWND window) { |
| 842 return ui::GetClassName(window) == base::string16(kNativeWindowClassName); | 843 return ui::GetClassName(window) == base::string16(kNativeWindowClassName); |
| 843 } | 844 } |
| 844 #endif | 845 #endif |
| 845 | 846 |
| 846 } // namespace content | 847 } // namespace content |
| OLD | NEW |