| 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 "content/test/fake_plugin_service.h" | 5 #include "content/test/fake_plugin_service.h" |
| 6 | 6 |
| 7 namespace content { | 7 namespace content { |
| 8 | 8 |
| 9 FakePluginService::FakePluginService() { | 9 FakePluginService::FakePluginService() { |
| 10 } | 10 } |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 } | 94 } |
| 95 | 95 |
| 96 void FakePluginService::GetInternalPlugins( | 96 void FakePluginService::GetInternalPlugins( |
| 97 std::vector<WebPluginInfo>* plugins) { | 97 std::vector<WebPluginInfo>* plugins) { |
| 98 } | 98 } |
| 99 | 99 |
| 100 bool FakePluginService::NPAPIPluginsSupported() { | 100 bool FakePluginService::NPAPIPluginsSupported() { |
| 101 return false; | 101 return false; |
| 102 } | 102 } |
| 103 | 103 |
| 104 void FakePluginService::EnableNpapiPlugins() { | |
| 105 } | |
| 106 | |
| 107 void FakePluginService::DisablePluginsDiscoveryForTesting() { | 104 void FakePluginService::DisablePluginsDiscoveryForTesting() { |
| 108 } | 105 } |
| 109 | 106 |
| 110 #if defined(OS_MACOSX) | 107 #if defined(OS_MACOSX) |
| 111 void FakePluginService::AppActivated() { | 108 void FakePluginService::AppActivated() { |
| 112 } | 109 } |
| 113 #elif defined(OS_WIN) | 110 #elif defined(OS_WIN) |
| 114 bool FakePluginService::GetPluginInfoFromWindow( | 111 bool FakePluginService::GetPluginInfoFromWindow( |
| 115 HWND window, | 112 HWND window, |
| 116 base::string16* plugin_name, | 113 base::string16* plugin_name, |
| 117 base::string16* plugin_version) { | 114 base::string16* plugin_version) { |
| 118 return false; | 115 return false; |
| 119 } | 116 } |
| 120 #endif | 117 #endif |
| 121 | 118 |
| 122 bool FakePluginService::PpapiDevChannelSupported( | 119 bool FakePluginService::PpapiDevChannelSupported( |
| 123 BrowserContext* browser_context, | 120 BrowserContext* browser_context, |
| 124 const GURL& document_url) { | 121 const GURL& document_url) { |
| 125 return false; | 122 return false; |
| 126 } | 123 } |
| 127 | 124 |
| 128 } // namespace content | 125 } // namespace content |
| OLD | NEW |