OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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.h" | 5 #include "content/browser/plugin_service.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/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
636 } | 636 } |
637 | 637 |
638 void PluginService::RemoveExtraPluginPath(const FilePath& path) { | 638 void PluginService::RemoveExtraPluginPath(const FilePath& path) { |
639 plugin_list()->RemoveExtraPluginPath(path); | 639 plugin_list()->RemoveExtraPluginPath(path); |
640 } | 640 } |
641 | 641 |
642 void PluginService::UnregisterInternalPlugin(const FilePath& path) { | 642 void PluginService::UnregisterInternalPlugin(const FilePath& path) { |
643 plugin_list()->UnregisterInternalPlugin(path); | 643 plugin_list()->UnregisterInternalPlugin(path); |
644 } | 644 } |
645 | 645 |
646 webkit::npapi::PluginList* PluginService::plugin_list() { | |
647 return webkit::npapi::PluginList::Singleton(); | |
648 } | |
649 | |
650 void PluginService::SetPluginListForTesting( | 646 void PluginService::SetPluginListForTesting( |
651 webkit::npapi::PluginList* plugin_list) { | 647 webkit::npapi::PluginList* plugin_list) { |
652 plugin_list_ = plugin_list; | 648 plugin_list_ = plugin_list; |
653 } | 649 } |
654 | 650 |
655 void PluginService::RegisterInternalPlugin(const webkit::WebPluginInfo& info) { | 651 void PluginService::RegisterInternalPlugin(const webkit::WebPluginInfo& info) { |
656 plugin_list()->RegisterInternalPlugin(info); | 652 plugin_list()->RegisterInternalPlugin(info); |
657 } | 653 } |
658 | 654 |
659 string16 PluginService::GetPluginGroupName(const std::string& plugin_name) { | 655 string16 PluginService::GetPluginGroupName(const std::string& plugin_name) { |
660 return plugin_list()->GetPluginGroupName(plugin_name); | 656 return plugin_list()->GetPluginGroupName(plugin_name); |
661 } | 657 } |
OLD | NEW |