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

Unified Diff: content/browser/plugin_service_stub.cc

Issue 11507017: Add PluginServiceStub for builds with enable_plugins==0 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/plugin_service_stub.h ('k') | content/browser/renderer_host/render_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/browser/plugin_service_stub.h ('k') | content/browser/renderer_host/render_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698