Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Side by Side Diff: content/browser/plugin_service.cc

Issue 8515021: Move PluginPrefs to use PluginService instead of PluginList. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update tests Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/plugin_service.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « content/browser/plugin_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698