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 <set> | 8 #include <map> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "content/renderer/java/gin_java_bridge_dispatcher.h" | 12 #include "content/renderer/java/gin_java_bridge_dispatcher.h" |
13 #include "gin/handle.h" | 13 #include "gin/handle.h" |
14 #include "gin/interceptor.h" | 14 #include "gin/interceptor.h" |
15 #include "gin/object_template_builder.h" | 15 #include "gin/object_template_builder.h" |
16 #include "gin/wrappable.h" | 16 #include "gin/wrappable.h" |
17 | 17 |
18 namespace blink { | 18 namespace blink { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 const base::WeakPtr<GinJavaBridgeDispatcher>& dispatcher, | 54 const base::WeakPtr<GinJavaBridgeDispatcher>& dispatcher, |
55 GinJavaBridgeDispatcher::ObjectID object_id); | 55 GinJavaBridgeDispatcher::ObjectID object_id); |
56 virtual ~GinJavaBridgeObject(); | 56 virtual ~GinJavaBridgeObject(); |
57 | 57 |
58 v8::Handle<v8::Value> InvokeMethod(const std::string& name, | 58 v8::Handle<v8::Value> InvokeMethod(const std::string& name, |
59 gin::Arguments* args); | 59 gin::Arguments* args); |
60 | 60 |
61 base::WeakPtr<GinJavaBridgeDispatcher> dispatcher_; | 61 base::WeakPtr<GinJavaBridgeDispatcher> dispatcher_; |
62 GinJavaBridgeDispatcher::ObjectID object_id_; | 62 GinJavaBridgeDispatcher::ObjectID object_id_; |
63 scoped_ptr<GinJavaBridgeValueConverter> converter_; | 63 scoped_ptr<GinJavaBridgeValueConverter> converter_; |
| 64 std::map<std::string, bool> known_methods_; |
64 | 65 |
65 DISALLOW_COPY_AND_ASSIGN(GinJavaBridgeObject); | 66 DISALLOW_COPY_AND_ASSIGN(GinJavaBridgeObject); |
66 }; | 67 }; |
67 | 68 |
68 } // namespace content | 69 } // namespace content |
69 | 70 |
70 #endif // CONTENT_RENDERER_JAVA_GIN_JAVA_BRIDGE_OBJECT_H_ | 71 #endif // CONTENT_RENDERER_JAVA_GIN_JAVA_BRIDGE_OBJECT_H_ |
OLD | NEW |