OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_COMMON_PEPPER_PLUGIN_REGISTRY_H_ | 5 #ifndef CONTENT_COMMON_PEPPER_PLUGIN_REGISTRY_H_ |
6 #define CONTENT_COMMON_PEPPER_PLUGIN_REGISTRY_H_ | 6 #define CONTENT_COMMON_PEPPER_PLUGIN_REGISTRY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 // Indicates internal plugins for which there's not actually a library. | 26 // Indicates internal plugins for which there's not actually a library. |
27 // These plugins are implemented in the Chrome binary using a separate set | 27 // These plugins are implemented in the Chrome binary using a separate set |
28 // of entry points (see internal_entry_points below). | 28 // of entry points (see internal_entry_points below). |
29 // Defaults to false. | 29 // Defaults to false. |
30 bool is_internal; | 30 bool is_internal; |
31 | 31 |
32 // True when this plugin should be run out of process. Defaults to false. | 32 // True when this plugin should be run out of process. Defaults to false. |
33 bool is_out_of_process; | 33 bool is_out_of_process; |
34 | 34 |
35 // Whether the plugin is enabled. Defaults to true. | |
36 bool enabled; | |
37 | |
38 FilePath path; // Internal plugins have "internal-[name]" as path. | 35 FilePath path; // Internal plugins have "internal-[name]" as path. |
39 std::string name; | 36 std::string name; |
40 std::string description; | 37 std::string description; |
41 std::string version; | 38 std::string version; |
42 std::vector<webkit::WebPluginMimeType> mime_types; | 39 std::vector<webkit::WebPluginMimeType> mime_types; |
43 | 40 |
44 // When is_internal is set, this contains the function pointers to the | 41 // When is_internal is set, this contains the function pointers to the |
45 // entry points for the internal plugins. | 42 // entry points for the internal plugins. |
46 webkit::ppapi::PluginModule::EntryPoints internal_entry_points; | 43 webkit::ppapi::PluginModule::EntryPoints internal_entry_points; |
47 }; | 44 }; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 // non-crashed modules. If an out-of-process module crashes, it may | 115 // non-crashed modules. If an out-of-process module crashes, it may |
119 // continue as long as there are WebKit references to it, but it will not | 116 // continue as long as there are WebKit references to it, but it will not |
120 // appear in this list. | 117 // appear in this list. |
121 typedef std::map<FilePath, webkit::ppapi::PluginModule*> NonOwningModuleMap; | 118 typedef std::map<FilePath, webkit::ppapi::PluginModule*> NonOwningModuleMap; |
122 NonOwningModuleMap live_modules_; | 119 NonOwningModuleMap live_modules_; |
123 | 120 |
124 DISALLOW_COPY_AND_ASSIGN(PepperPluginRegistry); | 121 DISALLOW_COPY_AND_ASSIGN(PepperPluginRegistry); |
125 }; | 122 }; |
126 | 123 |
127 #endif // CONTENT_COMMON_PEPPER_PLUGIN_REGISTRY_H_ | 124 #endif // CONTENT_COMMON_PEPPER_PLUGIN_REGISTRY_H_ |
OLD | NEW |