OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_JAVA_GIN_JAVA_BRIDGE_OBJECT_H_ | 5 #ifndef CONTENT_RENDERER_JAVA_GIN_JAVA_BRIDGE_OBJECT_H_ |
6 #define CONTENT_RENDERER_JAVA_GIN_JAVA_BRIDGE_OBJECT_H_ | 6 #define CONTENT_RENDERER_JAVA_GIN_JAVA_BRIDGE_OBJECT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 const base::WeakPtr<GinJavaBridgeDispatcher>& dispatcher, | 52 const base::WeakPtr<GinJavaBridgeDispatcher>& dispatcher, |
53 GinJavaBridgeDispatcher::ObjectID object_id); | 53 GinJavaBridgeDispatcher::ObjectID object_id); |
54 ~GinJavaBridgeObject() override; | 54 ~GinJavaBridgeObject() override; |
55 | 55 |
56 v8::Local<v8::FunctionTemplate> GetFunctionTemplate(v8::Isolate* isolate, | 56 v8::Local<v8::FunctionTemplate> GetFunctionTemplate(v8::Isolate* isolate, |
57 const std::string& name); | 57 const std::string& name); |
58 | 58 |
59 base::WeakPtr<GinJavaBridgeDispatcher> dispatcher_; | 59 base::WeakPtr<GinJavaBridgeDispatcher> dispatcher_; |
60 GinJavaBridgeDispatcher::ObjectID object_id_; | 60 GinJavaBridgeDispatcher::ObjectID object_id_; |
61 std::map<std::string, bool> known_methods_; | 61 std::map<std::string, bool> known_methods_; |
62 v8::StdPersistentValueMap<std::string, v8::FunctionTemplate> template_cache_; | 62 v8::StdGlobalValueMap<std::string, v8::FunctionTemplate> template_cache_; |
63 | 63 |
64 DISALLOW_COPY_AND_ASSIGN(GinJavaBridgeObject); | 64 DISALLOW_COPY_AND_ASSIGN(GinJavaBridgeObject); |
65 }; | 65 }; |
66 | 66 |
67 } // namespace content | 67 } // namespace content |
68 | 68 |
69 #endif // CONTENT_RENDERER_JAVA_GIN_JAVA_BRIDGE_OBJECT_H_ | 69 #endif // CONTENT_RENDERER_JAVA_GIN_JAVA_BRIDGE_OBJECT_H_ |
OLD | NEW |