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

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: Code review fixes Created 6 years, 8 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..faf64f845f27e87fe2a86269a6dc5a2db7dfe354 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();
@@ -60,6 +66,7 @@ class PluginManager : public BrowserContextKeyedAPI,
static const bool kServiceIsNULLWhileTesting = true;
extensions::NaClModuleInfo::List nacl_module_list_;
+ std::set<std::string> mime_type_handler_;
Yoyo Zhou 2014/04/30 14:47:19 This should be documented. It's not a great name -
Zachary Kuznia 2014/05/01 00:38:22 Added a comment and renamed the variable.
Profile* profile_;

Powered by Google App Engine
This is Rietveld 408576698