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_GLUE_PLUGINS_PEPPER_PLUGIN_MODULE_H_ | 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_MODULE_H_ |
6 #define WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_MODULE_H_ | 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_MODULE_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/native_library.h" | 11 #include "base/native_library.h" |
12 #include "base/ref_counted.h" | 12 #include "base/ref_counted.h" |
13 #include "third_party/ppapi/c/pp_module.h" | 13 #include "third_party/ppapi/c/pp_module.h" |
14 #include "third_party/ppapi/c/ppb.h" | 14 #include "third_party/ppapi/c/ppb.h" |
15 | 15 |
16 class FilePath; | 16 class FilePath; |
17 | 17 |
18 typedef struct _ppb_Core PPB_Core; | 18 struct PPB_Core; |
19 | 19 |
20 namespace pepper { | 20 namespace pepper { |
21 | 21 |
22 class PluginDelegate; | 22 class PluginDelegate; |
23 class PluginInstance; | 23 class PluginInstance; |
24 | 24 |
25 class PluginModule : public base::RefCounted<PluginModule> { | 25 class PluginModule : public base::RefCounted<PluginModule> { |
26 public: | 26 public: |
27 typedef const void* (*PPP_GetInterfaceFunc)(const char*); | 27 typedef const void* (*PPP_GetInterfaceFunc)(const char*); |
28 typedef int (*PPP_InitializeModuleFunc)(PP_Module, PPB_GetInterface); | 28 typedef int (*PPP_InitializeModuleFunc)(PP_Module, PPB_GetInterface); |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 // there are no more instances, this object should be deleted. | 94 // there are no more instances, this object should be deleted. |
95 typedef std::set<PluginInstance*> PluginInstanceSet; | 95 typedef std::set<PluginInstance*> PluginInstanceSet; |
96 PluginInstanceSet instances_; | 96 PluginInstanceSet instances_; |
97 | 97 |
98 DISALLOW_COPY_AND_ASSIGN(PluginModule); | 98 DISALLOW_COPY_AND_ASSIGN(PluginModule); |
99 }; | 99 }; |
100 | 100 |
101 } // namespace pepper | 101 } // namespace pepper |
102 | 102 |
103 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_MODULE_H_ | 103 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_MODULE_H_ |
OLD | NEW |