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_CHILD_NPAPI_PLUGIN_LIB_H_ | 5 #ifndef CONTENT_CHILD_NPAPI_PLUGIN_LIB_H_ |
6 #define CONTENT_CHILD_NPAPI_PLUGIN_LIB_H_ | 6 #define CONTENT_CHILD_NPAPI_PLUGIN_LIB_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 #include <vector> | 11 #include <vector> |
10 | 12 |
11 #include "base/basictypes.h" | 13 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
13 #include "base/native_library.h" | 15 #include "base/native_library.h" |
14 #include "build/build_config.h" | 16 #include "build/build_config.h" |
15 #include "content/child/npapi/webplugin.h" | 17 #include "content/child/npapi/webplugin.h" |
16 #include "content/common/content_export.h" | 18 #include "content/common/content_export.h" |
17 #include "content/public/common/webplugininfo.h" | 19 #include "content/public/common/webplugininfo.h" |
18 #include "third_party/npapi/bindings/nphostapi.h" | 20 #include "third_party/npapi/bindings/nphostapi.h" |
19 | 21 |
20 namespace base { | 22 namespace base { |
21 class FilePath; | 23 class FilePath; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // | 69 // |
68 | 70 |
69 // NPAPI method to initialize a Plugin. | 71 // NPAPI method to initialize a Plugin. |
70 // Initialize can be safely called multiple times | 72 // Initialize can be safely called multiple times |
71 NPError NP_Initialize(); | 73 NPError NP_Initialize(); |
72 | 74 |
73 // NPAPI method to shutdown a Plugin. | 75 // NPAPI method to shutdown a Plugin. |
74 void NP_Shutdown(void); | 76 void NP_Shutdown(void); |
75 | 77 |
76 // NPAPI method to clear locally stored data (LSO's or "Flash cookies"). | 78 // NPAPI method to clear locally stored data (LSO's or "Flash cookies"). |
77 NPError NP_ClearSiteData(const char* site, uint64 flags, uint64 max_age); | 79 NPError NP_ClearSiteData(const char* site, uint64_t flags, uint64_t max_age); |
78 | 80 |
79 // NPAPI method to get a NULL-terminated list of all sites under which data | 81 // NPAPI method to get a NULL-terminated list of all sites under which data |
80 // is stored. | 82 // is stored. |
81 char** NP_GetSitesWithData(); | 83 char** NP_GetSitesWithData(); |
82 | 84 |
83 int instance_count() const { return instance_count_; } | 85 int instance_count() const { return instance_count_; } |
84 | 86 |
85 // Prevents the library code from being unload when Unload() is called (since | 87 // Prevents the library code from being unload when Unload() is called (since |
86 // some plugins crash if unloaded). | 88 // some plugins crash if unloaded). |
87 void PreventLibraryUnload(); | 89 void PreventLibraryUnload(); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 126 |
125 // Set to true if unloading of the plugin dll is to be deferred. | 127 // Set to true if unloading of the plugin dll is to be deferred. |
126 bool defer_unload_; | 128 bool defer_unload_; |
127 | 129 |
128 DISALLOW_COPY_AND_ASSIGN(PluginLib); | 130 DISALLOW_COPY_AND_ASSIGN(PluginLib); |
129 }; | 131 }; |
130 | 132 |
131 } // namespace content | 133 } // namespace content |
132 | 134 |
133 #endif // CONTENT_CHILD_NPAPI_PLUGIN_LIB_H_ | 135 #endif // CONTENT_CHILD_NPAPI_PLUGIN_LIB_H_ |
OLD | NEW |