| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |