Index: content/browser/plugin_service_stub.cc |
diff --git a/content/browser/plugin_service_stub.cc b/content/browser/plugin_service_stub.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..80fc9e8b6a3ff24ec566a690e1febf9eba21711a |
--- /dev/null |
+++ b/content/browser/plugin_service_stub.cc |
@@ -0,0 +1,78 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "content/browser/plugin_service_stub.h" |
+ |
+#include "base/file_path.h" |
+ |
+namespace content { |
+ |
+// static |
+PluginService* PluginService::GetInstance() { |
+ return PluginServiceStub::GetInstance(); |
+} |
+ |
+// static |
+PluginServiceStub* PluginServiceStub::GetInstance() { |
+ return Singleton<PluginServiceStub>::get(); |
+} |
+ |
+void PluginService::PurgePluginListCache(BrowserContext* browser_context, |
+ bool reload_pages) { |
+} |
+ |
+PluginServiceStub::PluginServiceStub() {} |
+ |
+PluginServiceStub::~PluginServiceStub() { |
+} |
+ |
+bool PluginServiceStub::GetPluginInfoArray( |
+ const GURL& url, |
+ const std::string& mime_type, |
+ bool allow_wildcard, |
+ std::vector<webkit::WebPluginInfo>* plugins, |
+ std::vector<std::string>* actual_mime_types) { |
+ return false; |
+} |
+ |
+bool PluginServiceStub::GetPluginInfo(int render_process_id, |
+ int render_view_id, |
+ ResourceContext* context, |
+ const GURL& url, |
+ const GURL& page_url, |
+ const std::string& mime_type, |
+ bool allow_wildcard, |
+ bool* is_stale, |
+ webkit::WebPluginInfo* info, |
+ std::string* actual_mime_type) { |
+ return false; |
+} |
+ |
+bool PluginServiceStub::GetPluginInfoByPath(const FilePath& plugin_path, |
+ webkit::WebPluginInfo* info) { |
+ return false; |
+} |
+ |
+string16 PluginServiceStub::GetPluginDisplayNameByPath(const FilePath& path) { |
+ return path.LossyDisplayName(); |
+} |
+ |
+PepperPluginInfo* PluginServiceStub::GetRegisteredPpapiPluginInfo( |
+ const FilePath& plugin_path) { |
+ return NULL; |
+} |
+ |
+PluginServiceFilter* PluginServiceStub::GetFilter() { |
+ return NULL; |
+} |
+ |
+bool PluginServiceStub::IsPluginUnstable(const FilePath& path) { |
+ return false; |
+} |
+ |
+webkit::npapi::PluginList* PluginServiceStub::GetPluginList() { |
+ return NULL; |
+} |
+ |
+} // namespace content |