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

Side by Side Diff: android_webview/native/aw_message_port_service_impl.cc

Issue 1312153003: jni_generator: Pass object parameters as JavaParamRef. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 3 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "android_webview/native/aw_message_port_service_impl.h" 5 #include "android_webview/native/aw_message_port_service_impl.h"
6 6
7 #include "android_webview/browser/aw_browser_context.h" 7 #include "android_webview/browser/aw_browser_context.h"
8 #include "android_webview/browser/aw_message_port_message_filter.h" 8 #include "android_webview/browser/aw_message_port_message_filter.h"
9 #include "android_webview/native/aw_contents.h" 9 #include "android_webview/native/aw_contents.h"
10 #include "base/android/jni_array.h" 10 #include "base/android/jni_array.h"
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 return; 224 return;
225 } 225 }
226 ports_[message_port_id] = filter; 226 ports_[message_port_id] = filter;
227 } 227 }
228 228
229 bool RegisterAwMessagePortService(JNIEnv* env) { 229 bool RegisterAwMessagePortService(JNIEnv* env) {
230 return RegisterNativesImpl(env); 230 return RegisterNativesImpl(env);
231 } 231 }
232 232
233 // static 233 // static
234 jlong InitAwMessagePortService(JNIEnv* env, jobject obj) { 234 jlong InitAwMessagePortService(JNIEnv* env, const JavaParamRef<jobject>& obj) {
235 AwMessagePortServiceImpl* service = AwMessagePortServiceImpl::GetInstance(); 235 AwMessagePortServiceImpl* service = AwMessagePortServiceImpl::GetInstance();
236 service->Init(env, obj); 236 service->Init(env, obj);
237 return reinterpret_cast<intptr_t>(service); 237 return reinterpret_cast<intptr_t>(service);
238 } 238 }
239 239
240 } // namespace android_webview 240 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/native/aw_form_database.cc ('k') | android_webview/native/aw_quota_manager_bridge_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698