| 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_OBJECT_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_OBJECT_H_ |
| 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_OBJECT_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_OBJECT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 | 11 |
| 12 struct PP_Var; | 12 struct PP_Var; |
| 13 struct PPP_Class_Deprecated; | 13 struct PPP_Class_Deprecated; |
| 14 typedef struct NPObject NPObject; | 14 typedef struct NPObject NPObject; |
| 15 typedef struct _NPVariant NPVariant; | 15 typedef struct _NPVariant NPVariant; |
| 16 | 16 |
| 17 namespace pepper { | 17 namespace webkit { |
| 18 namespace plugins { |
| 19 namespace ppapi { |
| 18 | 20 |
| 19 class PluginModule; | 21 class PluginModule; |
| 20 | 22 |
| 21 class PluginObject { | 23 class PluginObject { |
| 22 public: | 24 public: |
| 23 virtual ~PluginObject(); | 25 virtual ~PluginObject(); |
| 24 | 26 |
| 25 // Allocates a new PluginObject and returns it as a PP_Var with a | 27 // Allocates a new PluginObject and returns it as a PP_Var with a |
| 26 // refcount of 1. | 28 // refcount of 1. |
| 27 static PP_Var Create(PluginModule* module, | 29 static PP_Var Create(PluginModule* module, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 // We don't actually own this pointer, it's the NPObject that actually | 79 // We don't actually own this pointer, it's the NPObject that actually |
| 78 // owns us. | 80 // owns us. |
| 79 NPObjectWrapper* object_wrapper_; | 81 NPObjectWrapper* object_wrapper_; |
| 80 | 82 |
| 81 const PPP_Class_Deprecated* ppp_class_; | 83 const PPP_Class_Deprecated* ppp_class_; |
| 82 void* ppp_class_data_; | 84 void* ppp_class_data_; |
| 83 | 85 |
| 84 DISALLOW_COPY_AND_ASSIGN(PluginObject); | 86 DISALLOW_COPY_AND_ASSIGN(PluginObject); |
| 85 }; | 87 }; |
| 86 | 88 |
| 87 } // namespace pepper | 89 } // namespace ppapi |
| 90 } // namespace plugins |
| 91 } // namespace webkit |
| 88 | 92 |
| 89 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_OBJECT_H_ | 93 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_OBJECT_H_ |
| OLD | NEW |