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

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

Issue 1110553002: replace to be deprecated v8::PersistentValueMap with v8::GlobalValueMap in gin_java_bridge_object.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | no next file » | 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 <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
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_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698