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 #include "content/browser/android/java/gin_java_bound_object.h" | 5 #include "content/browser/android/java/gin_java_bound_object.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
9 #include "base/android/scoped_java_ref.h" | 9 #include "base/android/scoped_java_ref.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 kJavaLangReflectMethod, | 178 kJavaLangReflectMethod, |
179 kIsAnnotationPresent, | 179 kIsAnnotationPresent, |
180 kTakesJavaLangClassReturningBoolean), | 180 kTakesJavaLangClassReturningBoolean), |
181 safe_annotation_clazz_.obj()); | 181 safe_annotation_clazz_.obj()); |
182 | 182 |
183 if (!safe) | 183 if (!safe) |
184 continue; | 184 continue; |
185 } | 185 } |
186 | 186 |
187 JavaMethod* method = new JavaMethod(java_method); | 187 JavaMethod* method = new JavaMethod(java_method); |
188 methods_.insert(std::make_pair(method->name(), method)); | 188 methods_.insert(std::make_pair(method->name(), make_linked_ptr(method))); |
189 } | 189 } |
190 } | 190 } |
191 | 191 |
192 } // namespace content | 192 } // namespace content |
OLD | NEW |