| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 #include "content/test/fake_plugin_service.h" | 6 #include "content/test/fake_plugin_service.h" |
| 7 | 7 |
| 8 namespace content { | 8 namespace content { |
| 9 | 9 |
| 10 FakePluginService::FakePluginService() { | 10 FakePluginService::FakePluginService() { |
| 11 } | 11 } |
| 12 | 12 |
| 13 FakePluginService::~FakePluginService() { | 13 FakePluginService::~FakePluginService() { |
| 14 } | 14 } |
| 15 | 15 |
| 16 void FakePluginService::Init() { | 16 void FakePluginService::Init() { |
| 17 } | 17 } |
| 18 | 18 |
| 19 void FakePluginService::StartWatchingPlugins() { | |
| 20 } | |
| 21 | |
| 22 bool FakePluginService::GetPluginInfoArray( | 19 bool FakePluginService::GetPluginInfoArray( |
| 23 const GURL& url, | 20 const GURL& url, |
| 24 const std::string& mime_type, | 21 const std::string& mime_type, |
| 25 bool allow_wildcard, | 22 bool allow_wildcard, |
| 26 std::vector<WebPluginInfo>* plugins, | 23 std::vector<WebPluginInfo>* plugins, |
| 27 std::vector<std::string>* actual_mime_types) { | 24 std::vector<std::string>* actual_mime_types) { |
| 28 return false; | 25 return false; |
| 29 } | 26 } |
| 30 | 27 |
| 31 bool FakePluginService::GetPluginInfo(int render_process_id, | 28 bool FakePluginService::GetPluginInfo(int render_process_id, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 60 return nullptr; | 57 return nullptr; |
| 61 } | 58 } |
| 62 | 59 |
| 63 void FakePluginService::SetFilter(PluginServiceFilter* filter) { | 60 void FakePluginService::SetFilter(PluginServiceFilter* filter) { |
| 64 } | 61 } |
| 65 | 62 |
| 66 PluginServiceFilter* FakePluginService::GetFilter() { | 63 PluginServiceFilter* FakePluginService::GetFilter() { |
| 67 return nullptr; | 64 return nullptr; |
| 68 } | 65 } |
| 69 | 66 |
| 70 void FakePluginService::ForcePluginShutdown(const base::FilePath& plugin_path) { | |
| 71 } | |
| 72 | |
| 73 bool FakePluginService::IsPluginUnstable(const base::FilePath& path) { | 67 bool FakePluginService::IsPluginUnstable(const base::FilePath& path) { |
| 74 return false; | 68 return false; |
| 75 } | 69 } |
| 76 | 70 |
| 77 void FakePluginService::RefreshPlugins() { | 71 void FakePluginService::RefreshPlugins() { |
| 78 } | 72 } |
| 79 | 73 |
| 80 void FakePluginService::AddExtraPluginPath(const base::FilePath& path) { | |
| 81 } | |
| 82 | |
| 83 void FakePluginService::RemoveExtraPluginPath(const base::FilePath& path) { | |
| 84 } | |
| 85 | |
| 86 void FakePluginService::AddExtraPluginDir(const base::FilePath& path) { | |
| 87 } | |
| 88 | |
| 89 void FakePluginService::RegisterInternalPlugin( | 74 void FakePluginService::RegisterInternalPlugin( |
| 90 const WebPluginInfo& info, | 75 const WebPluginInfo& info, |
| 91 bool add_at_beginning) { | 76 bool add_at_beginning) { |
| 92 } | 77 } |
| 93 | 78 |
| 94 void FakePluginService::UnregisterInternalPlugin(const base::FilePath& path) { | 79 void FakePluginService::UnregisterInternalPlugin(const base::FilePath& path) { |
| 95 } | 80 } |
| 96 | 81 |
| 97 void FakePluginService::GetInternalPlugins( | 82 void FakePluginService::GetInternalPlugins( |
| 98 std::vector<WebPluginInfo>* plugins) { | 83 std::vector<WebPluginInfo>* plugins) { |
| 99 } | 84 } |
| 100 | 85 |
| 101 bool FakePluginService::NPAPIPluginsSupported() { | |
| 102 return false; | |
| 103 } | |
| 104 | |
| 105 void FakePluginService::DisablePluginsDiscoveryForTesting() { | |
| 106 } | |
| 107 | |
| 108 #if defined(OS_MACOSX) | |
| 109 void FakePluginService::AppActivated() { | |
| 110 } | |
| 111 #endif | |
| 112 | |
| 113 bool FakePluginService::PpapiDevChannelSupported( | 86 bool FakePluginService::PpapiDevChannelSupported( |
| 114 BrowserContext* browser_context, | 87 BrowserContext* browser_context, |
| 115 const GURL& document_url) { | 88 const GURL& document_url) { |
| 116 return false; | 89 return false; |
| 117 } | 90 } |
| 118 | 91 |
| 119 } // namespace content | 92 } // namespace content |
| OLD | NEW |