1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/test/fake_plugin_service.h"
9 FakePluginService::FakePluginService() {
12 FakePluginService::~FakePluginService() {
15 void FakePluginService::Init() {
18 void FakePluginService::StartWatchingPlugins() {
21 bool FakePluginService::GetPluginInfoArray(
23 const std::string
& mime_type
,
25 std::vector
<WebPluginInfo
>* plugins
,
26 std::vector
<std::string
>* actual_mime_types
) {
30 bool FakePluginService::GetPluginInfo(int render_process_id
,
32 ResourceContext
* context
,
35 const std::string
& mime_type
,
39 std::string
* actual_mime_type
) {
44 bool FakePluginService::GetPluginInfoByPath(const base::FilePath
& plugin_path
,
45 WebPluginInfo
* info
) {
49 base::string16
FakePluginService::GetPluginDisplayNameByPath(
50 const base::FilePath
& path
) {
51 return base::string16();
54 void FakePluginService::GetPlugins(const GetPluginsCallback
& callback
) {
57 PepperPluginInfo
* FakePluginService::GetRegisteredPpapiPluginInfo(
58 const base::FilePath
& plugin_path
) {
62 void FakePluginService::SetFilter(PluginServiceFilter
* filter
) {
65 PluginServiceFilter
* FakePluginService::GetFilter() {
69 void FakePluginService::ForcePluginShutdown(const base::FilePath
& plugin_path
) {
72 bool FakePluginService::IsPluginUnstable(const base::FilePath
& path
) {
76 void FakePluginService::RefreshPlugins() {
79 void FakePluginService::AddExtraPluginPath(const base::FilePath
& path
) {
82 void FakePluginService::RemoveExtraPluginPath(const base::FilePath
& path
) {
85 void FakePluginService::AddExtraPluginDir(const base::FilePath
& path
) {
88 void FakePluginService::RegisterInternalPlugin(
89 const WebPluginInfo
& info
,
90 bool add_at_beginning
) {
93 void FakePluginService::UnregisterInternalPlugin(const base::FilePath
& path
) {
96 void FakePluginService::GetInternalPlugins(
97 std::vector
<WebPluginInfo
>* plugins
) {
100 bool FakePluginService::NPAPIPluginsSupported() {
104 void FakePluginService::EnableNpapiPlugins() {
107 void FakePluginService::DisablePluginsDiscoveryForTesting() {
110 #if defined(OS_MACOSX)
111 void FakePluginService::AppActivated() {
113 #elif defined(OS_WIN)
114 bool FakePluginService::GetPluginInfoFromWindow(
116 base::string16
* plugin_name
,
117 base::string16
* plugin_version
) {
122 bool FakePluginService::PpapiDevChannelSupported(
123 BrowserContext
* browser_context
,
124 const GURL
& document_url
) {
128 } // namespace content