| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_GLUE_PLUGIN_PLUGIN_LIB_H__ | 5 #ifndef WEBKIT_GLUE_PLUGIN_PLUGIN_LIB_H__ |
| 6 #define WEBKIT_GLUE_PLUGIN_PLUGIN_LIB_H__ | 6 #define WEBKIT_GLUE_PLUGIN_PLUGIN_LIB_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // Creates a new instance of this plugin. | 54 // Creates a new instance of this plugin. |
| 55 PluginInstance* CreateInstance(const std::string& mime_type); | 55 PluginInstance* CreateInstance(const std::string& mime_type); |
| 56 | 56 |
| 57 // Called by the instance when the instance is tearing down. | 57 // Called by the instance when the instance is tearing down. |
| 58 void CloseInstance(); | 58 void CloseInstance(); |
| 59 | 59 |
| 60 // Gets information about this plugin and the mime types that it | 60 // Gets information about this plugin and the mime types that it |
| 61 // supports. | 61 // supports. |
| 62 const WebPluginInfo& plugin_info() { return web_plugin_info_; } | 62 const WebPluginInfo& plugin_info() { return web_plugin_info_; } |
| 63 | 63 |
| 64 bool internal() { return internal_; } | |
| 65 | |
| 66 // | 64 // |
| 67 // NPAPI functions | 65 // NPAPI functions |
| 68 // | 66 // |
| 69 | 67 |
| 70 // NPAPI method to initialize a Plugin. | 68 // NPAPI method to initialize a Plugin. |
| 71 // Initialize can be safely called multiple times | 69 // Initialize can be safely called multiple times |
| 72 NPError NP_Initialize(); | 70 NPError NP_Initialize(); |
| 73 | 71 |
| 74 // NPAPI method to shutdown a Plugin. | 72 // NPAPI method to shutdown a Plugin. |
| 75 void NP_Shutdown(void); | 73 void NP_Shutdown(void); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 103 | 101 |
| 104 // Function pointers to entry points into the plugin. | 102 // Function pointers to entry points into the plugin. |
| 105 PluginEntryPoints entry_points_; | 103 PluginEntryPoints entry_points_; |
| 106 | 104 |
| 107 DISALLOW_EVIL_CONSTRUCTORS(PluginLib); | 105 DISALLOW_EVIL_CONSTRUCTORS(PluginLib); |
| 108 }; | 106 }; |
| 109 | 107 |
| 110 } // namespace NPAPI | 108 } // namespace NPAPI |
| 111 | 109 |
| 112 #endif // WEBKIT_GLUE_PLUGIN_PLUGIN_LIB_H__ | 110 #endif // WEBKIT_GLUE_PLUGIN_PLUGIN_LIB_H__ |
| OLD | NEW |