Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(665)

Side by Side Diff: content/renderer/java/gin_java_bridge_object.h

Issue 381683002: [Android] Cache injected Java objects' methods info on renderer side (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/renderer/java/gin_java_bridge_object.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/java/gin_java_bridge_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698