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 CONTENT_RENDERER_PEPPER_PLUGIN_OBJECT_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PLUGIN_OBJECT_H_ |
6 #define CONTENT_RENDERER_PEPPER_PLUGIN_OBJECT_H_ | 6 #define CONTENT_RENDERER_PEPPER_PLUGIN_OBJECT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 void Call(const std::string& identifier, gin::Arguments* args); | 77 void Call(const std::string& identifier, gin::Arguments* args); |
78 | 78 |
79 v8::Local<v8::FunctionTemplate> GetFunctionTemplate(v8::Isolate* isolate, | 79 v8::Local<v8::FunctionTemplate> GetFunctionTemplate(v8::Isolate* isolate, |
80 const std::string& name); | 80 const std::string& name); |
81 | 81 |
82 PepperPluginInstanceImpl* instance_; | 82 PepperPluginInstanceImpl* instance_; |
83 | 83 |
84 const PPP_Class_Deprecated* ppp_class_; | 84 const PPP_Class_Deprecated* ppp_class_; |
85 void* ppp_class_data_; | 85 void* ppp_class_data_; |
86 | 86 |
| 87 v8::StdPersistentValueMap<std::string, v8::FunctionTemplate> template_cache_; |
| 88 |
87 base::WeakPtrFactory<PluginObject> weak_factory_; | 89 base::WeakPtrFactory<PluginObject> weak_factory_; |
88 | 90 |
89 v8::StdPersistentValueMap<std::string, v8::FunctionTemplate> template_cache_; | |
90 | |
91 DISALLOW_COPY_AND_ASSIGN(PluginObject); | 91 DISALLOW_COPY_AND_ASSIGN(PluginObject); |
92 }; | 92 }; |
93 | 93 |
94 } // namespace content | 94 } // namespace content |
95 | 95 |
96 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_OBJECT_H_ | 96 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_OBJECT_H_ |
OLD | NEW |