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_PLUGINS_PPAPI_PLUGIN_MODULE_H_ |
6 #define WEBKIT_GLUE_PLUGINS_PEPPER_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 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/native_library.h" | 12 #include "base/native_library.h" |
13 #include "base/process.h" | 13 #include "base/process.h" |
14 #include "base/ref_counted.h" | 14 #include "base/ref_counted.h" |
15 #include "base/scoped_ptr.h" | 15 #include "base/scoped_ptr.h" |
16 #include "base/weak_ptr.h" | 16 #include "base/weak_ptr.h" |
17 #include "ppapi/c/pp_module.h" | 17 #include "ppapi/c/pp_module.h" |
18 #include "ppapi/c/ppb.h" | 18 #include "ppapi/c/ppb.h" |
19 #include "webkit/glue/plugins/pepper_plugin_delegate.h" | 19 #include "webkit/plugins/ppapi/plugin_delegate.h" |
20 | 20 |
21 class FilePath; | 21 class FilePath; |
22 class MessageLoop; | 22 class MessageLoop; |
23 typedef struct NPObject NPObject; | 23 typedef struct NPObject NPObject; |
24 struct PPB_Core; | 24 struct PPB_Core; |
25 typedef void* NPIdentifier; | 25 typedef void* NPIdentifier; |
26 | 26 |
27 namespace base { | 27 namespace base { |
28 class WaitableEvent; | 28 class WaitableEvent; |
29 } | 29 } |
30 | 30 |
31 namespace pp { | 31 namespace pp { |
32 namespace proxy { | 32 namespace proxy { |
33 class HostDispatcher; | 33 class HostDispatcher; |
34 } // proxy | 34 } // proxy |
35 } // pp | 35 } // pp |
36 | 36 |
37 namespace IPC { | 37 namespace IPC { |
38 struct ChannelHandle; | 38 struct ChannelHandle; |
39 } | 39 } |
40 | 40 |
41 namespace pepper { | 41 namespace webkit { |
| 42 namespace ppapi { |
42 | 43 |
43 class ObjectVar; | 44 class ObjectVar; |
44 class PluginDelegate; | 45 class PluginDelegate; |
45 class PluginInstance; | 46 class PluginInstance; |
46 class PluginObject; | 47 class PluginObject; |
47 | 48 |
48 // Represents one plugin library loaded into one renderer. This library may | 49 // Represents one plugin library loaded into one renderer. This library may |
49 // have multiple instances. | 50 // have multiple instances. |
50 // | 51 // |
51 // Note: to get from a PP_Instance to a PluginInstance*, use the | 52 // Note: to get from a PP_Instance to a PluginInstance*, use the |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 // the corresponding object. These are non-owning references. | 169 // the corresponding object. These are non-owning references. |
169 typedef std::map<NPObject*, ObjectVar*> NPObjectToObjectVarMap;; | 170 typedef std::map<NPObject*, ObjectVar*> NPObjectToObjectVarMap;; |
170 NPObjectToObjectVarMap np_object_to_object_var_; | 171 NPObjectToObjectVarMap np_object_to_object_var_; |
171 | 172 |
172 typedef std::set<PluginObject*> PluginObjectSet; | 173 typedef std::set<PluginObject*> PluginObjectSet; |
173 PluginObjectSet live_plugin_objects_; | 174 PluginObjectSet live_plugin_objects_; |
174 | 175 |
175 DISALLOW_COPY_AND_ASSIGN(PluginModule); | 176 DISALLOW_COPY_AND_ASSIGN(PluginModule); |
176 }; | 177 }; |
177 | 178 |
178 } // namespace pepper | 179 } // namespace ppapi |
| 180 } // namespace webkit |
179 | 181 |
180 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_MODULE_H_ | 182 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ |
OLD | NEW |