OLD | NEW |
| (Empty) |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_RENDERER_PEPPER_PLUGIN_REGISTRY_H_ | |
6 #define CHROME_RENDERER_PEPPER_PLUGIN_REGISTRY_H_ | |
7 | |
8 #include <string> | |
9 #include <map> | |
10 | |
11 #include "webkit/glue/plugins/pepper_plugin_module.h" | |
12 | |
13 // This class holds references to all of the known pepper plugin modules. | |
14 class PepperPluginRegistry { | |
15 public: | |
16 static PepperPluginRegistry* GetInstance(); | |
17 | |
18 pepper::PluginModule* GetModule(const std::string& mime_type) const; | |
19 | |
20 private: | |
21 PepperPluginRegistry(); | |
22 | |
23 typedef scoped_refptr<pepper::PluginModule> ModuleHandle; | |
24 typedef std::map<std::string, ModuleHandle> ModuleMap; | |
25 ModuleMap modules_; | |
26 }; | |
27 | |
28 #endif // CHROME_RENDERER_PEPPER_PLUGIN_REGISTRY_H_ | |
OLD | NEW |