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

Side by Side Diff: content/browser/android/java/java_method.cc

Issue 336313018: [Android] Move content/browser/{renderer_host => android}/java/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated paths for unit tests, rebased 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 | « content/browser/android/java/java_method.h ('k') | content/browser/android/java/java_type.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/renderer_host/java/java_method.h" 5 #include "content/browser/android/java/java_method.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/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
11 #include "base/strings/string_util.h" // For ReplaceSubstringsAfterOffset 11 #include "base/strings/string_util.h" // For ReplaceSubstringsAfterOffset
12 #include "content/browser/renderer_host/java/jni_helper.h" 12 #include "content/browser/android/java/jni_helper.h"
13 13
14 using base::android::AttachCurrentThread; 14 using base::android::AttachCurrentThread;
15 using base::android::ConvertJavaStringToUTF8; 15 using base::android::ConvertJavaStringToUTF8;
16 using base::android::GetClass; 16 using base::android::GetClass;
17 using base::android::MethodID; 17 using base::android::MethodID;
18 using base::android::ScopedJavaGlobalRef; 18 using base::android::ScopedJavaGlobalRef;
19 using base::android::ScopedJavaLocalRef; 19 using base::android::ScopedJavaLocalRef;
20 20
21 namespace content { 21 namespace content {
22 namespace { 22 namespace {
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 kReturningJavaLangClass)))); 233 kReturningJavaLangClass))));
234 id_ = is_static_ ? 234 id_ = is_static_ ?
235 MethodID::Get<MethodID::TYPE_STATIC>( 235 MethodID::Get<MethodID::TYPE_STATIC>(
236 env, declaring_class.obj(), name_.c_str(), signature.c_str()) : 236 env, declaring_class.obj(), name_.c_str(), signature.c_str()) :
237 MethodID::Get<MethodID::TYPE_INSTANCE>( 237 MethodID::Get<MethodID::TYPE_INSTANCE>(
238 env, declaring_class.obj(), name_.c_str(), signature.c_str()); 238 env, declaring_class.obj(), name_.c_str(), signature.c_str());
239 java_method_.Reset(); 239 java_method_.Reset();
240 } 240 }
241 241
242 } // namespace content 242 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/java/java_method.h ('k') | content/browser/android/java/java_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698