| 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 plugins { |
| 43 namespace ppapi { |
| 42 | 44 |
| 43 class ObjectVar; | 45 class ObjectVar; |
| 44 class PluginDelegate; | 46 class PluginDelegate; |
| 45 class PluginInstance; | 47 class PluginInstance; |
| 46 class PluginObject; | 48 class PluginObject; |
| 47 | 49 |
| 48 // Represents one plugin library loaded into one renderer. This library may | 50 // Represents one plugin library loaded into one renderer. This library may |
| 49 // have multiple instances. | 51 // have multiple instances. |
| 50 // | 52 // |
| 51 // Note: to get from a PP_Instance to a PluginInstance*, use the | 53 // 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. | 170 // the corresponding object. These are non-owning references. |
| 169 typedef std::map<NPObject*, ObjectVar*> NPObjectToObjectVarMap;; | 171 typedef std::map<NPObject*, ObjectVar*> NPObjectToObjectVarMap;; |
| 170 NPObjectToObjectVarMap np_object_to_object_var_; | 172 NPObjectToObjectVarMap np_object_to_object_var_; |
| 171 | 173 |
| 172 typedef std::set<PluginObject*> PluginObjectSet; | 174 typedef std::set<PluginObject*> PluginObjectSet; |
| 173 PluginObjectSet live_plugin_objects_; | 175 PluginObjectSet live_plugin_objects_; |
| 174 | 176 |
| 175 DISALLOW_COPY_AND_ASSIGN(PluginModule); | 177 DISALLOW_COPY_AND_ASSIGN(PluginModule); |
| 176 }; | 178 }; |
| 177 | 179 |
| 178 } // namespace pepper | 180 } // namespace ppapi |
| 181 } // namespace plugins |
| 182 } // namespace webkit |
| 179 | 183 |
| 180 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_MODULE_H_ | 184 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ |
| OLD | NEW |