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

Unified Diff: chrome/browser/extensions/plugin_manager.h

Issue 263513004: Forward MIME types to BrowserPlugin when a viewer is specified. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unittests Created 6 years, 6 months 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
Index: chrome/browser/extensions/plugin_manager.h
diff --git a/chrome/browser/extensions/plugin_manager.h b/chrome/browser/extensions/plugin_manager.h
index 9c8d046453053298c48f6e5d4022d952d7c46b57..ea988f560634a54428d08e6e0e7e80380476bb2a 100644
--- a/chrome/browser/extensions/plugin_manager.h
+++ b/chrome/browser/extensions/plugin_manager.h
@@ -5,6 +5,9 @@
#ifndef CHROME_BROWSER_EXTENSIONS_PLUGIN_MANAGER_H_
#define CHROME_BROWSER_EXTENSIONS_PLUGIN_MANAGER_H_
+#include <set>
+#include <string>
+
#include "base/scoped_observer.h"
#include "chrome/common/extensions/manifest_handlers/nacl_modules_handler.h"
#include "extensions/browser/browser_context_keyed_api_factory.h"
@@ -41,6 +44,9 @@ class PluginManager : public BrowserContextKeyedAPI,
void RegisterNaClModule(const NaClModuleInfo& info);
void UnregisterNaClModule(const NaClModuleInfo& info);
+ void RegisterMimeTypeHandler(const std::string& extension_id);
+ void UnregisterMimeTypeHandler(const std::string& extension_id);
+
// Call UpdatePluginListWithNaClModules() after registering or unregistering
// a NaCl module to see those changes reflected in the PluginList.
void UpdatePluginListWithNaClModules();
@@ -61,6 +67,10 @@ class PluginManager : public BrowserContextKeyedAPI,
extensions::NaClModuleInfo::List nacl_module_list_;
+ // The set of extensions that are registered as the handler for at least one
+ // MIME type.
+ std::set<std::string> mime_type_handler_extension_ids_;
+
Profile* profile_;
// Listen to extension load, unloaded notifications.
« no previous file with comments | « chrome/browser/extensions/api/streams_private/streams_private_api.cc ('k') | chrome/browser/extensions/plugin_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698