OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_COMMON_PEPPER_PLUGIN_REGISTRY_H_ | 5 #ifndef CHROME_COMMON_PEPPER_PLUGIN_REGISTRY_H_ |
6 #define CHROME_COMMON_PEPPER_PLUGIN_REGISTRY_H_ | 6 #define CHROME_COMMON_PEPPER_PLUGIN_REGISTRY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
| 9 #include <map> |
9 #include <string> | 10 #include <string> |
10 #include <map> | |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/file_path.h" | 13 #include "base/file_path.h" |
14 #include "webkit/glue/plugins/pepper_plugin_module.h" | 14 #include "webkit/glue/plugins/pepper_plugin_module.h" |
15 | 15 |
16 struct PepperPluginInfo { | 16 struct PepperPluginInfo { |
17 PepperPluginInfo(); // Needed to initialize |is_internal|. | 17 PepperPluginInfo(); // Needed to initialize |is_internal|. |
18 | 18 |
19 bool is_internal; // Defaults to false (see constructor). | 19 bool is_internal; // Defaults to false (see constructor). |
20 FilePath path; // Internal plugins have "internal-[name]" as path. | 20 FilePath path; // Internal plugins have "internal-[name]" as path. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 static void GetInternalPluginInfo(InternalPluginInfoList* plugin_info); | 54 static void GetInternalPluginInfo(InternalPluginInfoList* plugin_info); |
55 | 55 |
56 PepperPluginRegistry(); | 56 PepperPluginRegistry(); |
57 | 57 |
58 typedef scoped_refptr<pepper::PluginModule> ModuleHandle; | 58 typedef scoped_refptr<pepper::PluginModule> ModuleHandle; |
59 typedef std::map<FilePath, ModuleHandle> ModuleMap; | 59 typedef std::map<FilePath, ModuleHandle> ModuleMap; |
60 ModuleMap modules_; | 60 ModuleMap modules_; |
61 }; | 61 }; |
62 | 62 |
63 #endif // CHROME_COMMON_PEPPER_PLUGIN_REGISTRY_H_ | 63 #endif // CHROME_COMMON_PEPPER_PLUGIN_REGISTRY_H_ |
OLD | NEW |