OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 // NOTE: those custom interfaces provided by PpapiInterfaceFactoryManager | 126 // NOTE: those custom interfaces provided by PpapiInterfaceFactoryManager |
127 // will not be considered when called on the browser process. | 127 // will not be considered when called on the browser process. |
128 static bool SupportsInterface(const char* name); | 128 static bool SupportsInterface(const char* name); |
129 | 129 |
130 // Returns the module handle. This may be used before Init() is called (the | 130 // Returns the module handle. This may be used before Init() is called (the |
131 // proxy needs this information to set itself up properly). | 131 // proxy needs this information to set itself up properly). |
132 PP_Module pp_module() const { return pp_module_; } | 132 PP_Module pp_module() const { return pp_module_; } |
133 | 133 |
134 const std::string& name() const { return name_; } | 134 const std::string& name() const { return name_; } |
135 const FilePath& path() const { return path_; } | 135 const FilePath& path() const { return path_; } |
136 const ::ppapi::PpapiPermissions& permissions() const { return permissions_; } | 136 const ::ppapi::PpapiPermissions permissions() const { return permissions_; } |
137 | 137 |
138 PluginInstance* CreateInstance(PluginDelegate* delegate); | 138 PluginInstance* CreateInstance(PluginDelegate* delegate); |
139 | 139 |
140 // Returns "some" plugin instance associated with this module. This is not | 140 // Returns "some" plugin instance associated with this module. This is not |
141 // guaranteed to be any one in particular. This is normally used to execute | 141 // guaranteed to be any one in particular. This is normally used to execute |
142 // callbacks up to the browser layer that are not inherently per-instance, | 142 // callbacks up to the browser layer that are not inherently per-instance, |
143 // but the delegate lives only on the plugin instance so we need one of them. | 143 // but the delegate lives only on the plugin instance so we need one of them. |
144 PluginInstance* GetSomeInstance() const; | 144 PluginInstance* GetSomeInstance() const; |
145 | 145 |
146 const PluginInstanceSet& GetAllInstances() const { return instances_; } | 146 const PluginInstanceSet& GetAllInstances() const { return instances_; } |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 | 237 |
238 PP_Bool (*reserve_instance_id_)(PP_Module, PP_Instance); | 238 PP_Bool (*reserve_instance_id_)(PP_Module, PP_Instance); |
239 | 239 |
240 DISALLOW_COPY_AND_ASSIGN(PluginModule); | 240 DISALLOW_COPY_AND_ASSIGN(PluginModule); |
241 }; | 241 }; |
242 | 242 |
243 } // namespace ppapi | 243 } // namespace ppapi |
244 } // namespace webkit | 244 } // namespace webkit |
245 | 245 |
246 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ | 246 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ |
OLD | NEW |