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 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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() { | 646 webkit::npapi::PluginList* PluginService::plugin_list() { |
647 return webkit::npapi::PluginList::Singleton(); | 647 return plugin_list_; |
jam
2011/11/10 23:57:40
nit: please move this function impl to the header
Robert Sesek
2011/11/11 01:19:19
Will do this in a follow-up tomorrow. Afk and want
Robert Sesek
2011/11/11 16:01:18
Done.
| |
648 } | 648 } |
649 | 649 |
650 void PluginService::SetPluginListForTesting( | 650 void PluginService::SetPluginListForTesting( |
651 webkit::npapi::PluginList* plugin_list) { | 651 webkit::npapi::PluginList* plugin_list) { |
652 plugin_list_ = plugin_list; | 652 plugin_list_ = plugin_list; |
653 } | 653 } |
654 | 654 |
655 void PluginService::RegisterInternalPlugin(const webkit::WebPluginInfo& info) { | 655 void PluginService::RegisterInternalPlugin(const webkit::WebPluginInfo& info) { |
656 plugin_list()->RegisterInternalPlugin(info); | 656 plugin_list()->RegisterInternalPlugin(info); |
657 } | 657 } |
658 | 658 |
659 string16 PluginService::GetPluginGroupName(const std::string& plugin_name) { | 659 string16 PluginService::GetPluginGroupName(const std::string& plugin_name) { |
660 return plugin_list()->GetPluginGroupName(plugin_name); | 660 return plugin_list()->GetPluginGroupName(plugin_name); |
661 } | 661 } |
OLD | NEW |