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