| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #include "webrtc/api/android/jni/androidnetworkmonitor_jni.h" | 11 #include "webrtc/sdk/android/src/jni/androidnetworkmonitor_jni.h" |
| 12 | 12 |
| 13 #include <dlfcn.h> | 13 #include <dlfcn.h> |
| 14 // This was added in Lollipop to dlfcn.h | 14 // This was added in Lollipop to dlfcn.h |
| 15 #define RTLD_NOLOAD 4 | 15 #define RTLD_NOLOAD 4 |
| 16 | 16 |
| 17 #include "webrtc/api/android/jni/classreferenceholder.h" | 17 #include "webrtc/sdk/android/src/jni/classreferenceholder.h" |
| 18 #include "webrtc/api/android/jni/jni_helpers.h" | 18 #include "webrtc/sdk/android/src/jni/jni_helpers.h" |
| 19 #include "webrtc/base/bind.h" | 19 #include "webrtc/base/bind.h" |
| 20 #include "webrtc/base/common.h" | 20 #include "webrtc/base/common.h" |
| 21 #include "webrtc/base/ipaddress.h" | 21 #include "webrtc/base/ipaddress.h" |
| 22 | 22 |
| 23 namespace webrtc_jni { | 23 namespace webrtc_jni { |
| 24 | 24 |
| 25 enum AndroidSdkVersion { | 25 enum AndroidSdkVersion { |
| 26 SDK_VERSION_LOLLIPOP = 21, | 26 SDK_VERSION_LOLLIPOP = 21, |
| 27 SDK_VERSION_MARSHMALLOW = 23 | 27 SDK_VERSION_MARSHMALLOW = 23 |
| 28 }; | 28 }; |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 JOW(void, NetworkMonitor_nativeNotifyOfNetworkDisconnect)( | 426 JOW(void, NetworkMonitor_nativeNotifyOfNetworkDisconnect)( |
| 427 JNIEnv* jni, jobject j_monitor, jlong j_native_monitor, | 427 JNIEnv* jni, jobject j_monitor, jlong j_native_monitor, |
| 428 jlong network_handle) { | 428 jlong network_handle) { |
| 429 AndroidNetworkMonitor* network_monitor = | 429 AndroidNetworkMonitor* network_monitor = |
| 430 reinterpret_cast<AndroidNetworkMonitor*>(j_native_monitor); | 430 reinterpret_cast<AndroidNetworkMonitor*>(j_native_monitor); |
| 431 network_monitor->OnNetworkDisconnected( | 431 network_monitor->OnNetworkDisconnected( |
| 432 static_cast<NetworkHandle>(network_handle)); | 432 static_cast<NetworkHandle>(network_handle)); |
| 433 } | 433 } |
| 434 | 434 |
| 435 } // namespace webrtc_jni | 435 } // namespace webrtc_jni |
| OLD | NEW |