| 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 WEBKIT_PLUGINS_NPAPI_PLUGIN_LIB_H_ | 5 #ifndef WEBKIT_PLUGINS_NPAPI_PLUGIN_LIB_H_ |
| 6 #define WEBKIT_PLUGINS_NPAPI_PLUGIN_LIB_H_ | 6 #define WEBKIT_PLUGINS_NPAPI_PLUGIN_LIB_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 // NPAPI functions | 66 // NPAPI functions |
| 67 // | 67 // |
| 68 | 68 |
| 69 // NPAPI method to initialize a Plugin. | 69 // NPAPI method to initialize a Plugin. |
| 70 // Initialize can be safely called multiple times | 70 // Initialize can be safely called multiple times |
| 71 NPError NP_Initialize(); | 71 NPError NP_Initialize(); |
| 72 | 72 |
| 73 // NPAPI method to shutdown a Plugin. | 73 // NPAPI method to shutdown a Plugin. |
| 74 void NP_Shutdown(void); | 74 void NP_Shutdown(void); |
| 75 | 75 |
| 76 // NPAPI method to clear locally stored data (LSO's or "Flash cookies"). |
| 77 NPError NP_ClearSiteData(const char* site, uint64 flags, uint64 max_age); |
| 78 |
| 79 // NPAPI method to get a NULL-terminated list of all sites under which data |
| 80 // is stored. |
| 81 char** NP_GetSitesWithData(); |
| 82 |
| 76 int instance_count() const { return instance_count_; } | 83 int instance_count() const { return instance_count_; } |
| 77 | 84 |
| 78 // Prevents the library code from being unload when Unload() is called (since | 85 // Prevents the library code from being unload when Unload() is called (since |
| 79 // some plugins crash if unloaded). | 86 // some plugins crash if unloaded). |
| 80 void PreventLibraryUnload(); | 87 void PreventLibraryUnload(); |
| 81 | 88 |
| 82 // protected for testability. | 89 // protected for testability. |
| 83 protected: | 90 protected: |
| 84 friend class base::RefCounted<PluginLib>; | 91 friend class base::RefCounted<PluginLib>; |
| 85 | 92 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 113 // Function pointers to entry points into the plugin. | 120 // Function pointers to entry points into the plugin. |
| 114 PluginEntryPoints entry_points_; | 121 PluginEntryPoints entry_points_; |
| 115 | 122 |
| 116 DISALLOW_COPY_AND_ASSIGN(PluginLib); | 123 DISALLOW_COPY_AND_ASSIGN(PluginLib); |
| 117 }; | 124 }; |
| 118 | 125 |
| 119 } // namespace npapi | 126 } // namespace npapi |
| 120 } // namespace webkit | 127 } // namespace webkit |
| 121 | 128 |
| 122 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_LIB_H_ | 129 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_LIB_H_ |
| OLD | NEW |