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_CLASS_H_ | 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_CLASS_H_ |
6 #define WEBKIT_GLUE_PLUGINS_PEPPER_CLASS_H_ | 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_CLASS_H_ |
7 | 7 |
8 #include "webkit/glue/plugins/pepper_resource.h" | 8 #include "webkit/glue/plugins/pepper_resource.h" |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 22 matching lines...) Expand all Loading... |
33 typedef base::hash_map<std::string, Property> PropertyMap; | 33 typedef base::hash_map<std::string, Property> PropertyMap; |
34 | 34 |
35 // Returns the PPB_Var interface for the plugin to use. | 35 // Returns the PPB_Var interface for the plugin to use. |
36 static const PPB_Class* GetInterface(); | 36 static const PPB_Class* GetInterface(); |
37 | 37 |
38 VarObjectClass(PluginModule* module, PP_ClassDestructor destruct, | 38 VarObjectClass(PluginModule* module, PP_ClassDestructor destruct, |
39 PP_ClassFunction invoke, PP_ClassProperty* properties); | 39 PP_ClassFunction invoke, PP_ClassProperty* properties); |
40 virtual ~VarObjectClass(); | 40 virtual ~VarObjectClass(); |
41 | 41 |
42 // Resource override. | 42 // Resource override. |
43 virtual VarObjectClass* AsVarObjectClass() { return this; } | 43 virtual VarObjectClass* AsVarObjectClass(); |
44 | 44 |
45 const PropertyMap &properties() const { return properties_; } | 45 const PropertyMap &properties() const { return properties_; } |
46 | 46 |
47 PP_ClassDestructor instance_native_destructor() { | 47 PP_ClassDestructor instance_native_destructor() { |
48 return instance_native_destructor_; | 48 return instance_native_destructor_; |
49 } | 49 } |
50 | 50 |
51 PP_ClassFunction instance_invoke() { | 51 PP_ClassFunction instance_invoke() { |
52 return instance_invoke_; | 52 return instance_invoke_; |
53 } | 53 } |
54 | 54 |
55 private: | 55 private: |
56 PropertyMap properties_; | 56 PropertyMap properties_; |
57 PP_ClassDestructor instance_native_destructor_; | 57 PP_ClassDestructor instance_native_destructor_; |
58 PP_ClassFunction instance_invoke_; | 58 PP_ClassFunction instance_invoke_; |
59 | 59 |
60 DISALLOW_COPY_AND_ASSIGN(VarObjectClass); | 60 DISALLOW_COPY_AND_ASSIGN(VarObjectClass); |
61 }; | 61 }; |
62 | 62 |
63 } // namespace pepper | 63 } // namespace pepper |
64 | 64 |
65 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_CLASS_H_ | 65 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_CLASS_H_ |
66 | 66 |
OLD | NEW |