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

Side by Side Diff: webrtc/api/android/jni/androidnetworkmonitor_jni.cc

Issue 2111823002: Combine webrtc/api/java/android and webrtc/api/java/src. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 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
OLDNEW
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/java/jni/androidnetworkmonitor_jni.h" 11 #include "webrtc/api/android/jni/androidnetworkmonitor_jni.h"
12 12
13 #include <dlfcn.h> 13 #include <dlfcn.h>
14 14
15 #include "webrtc/api/java/jni/classreferenceholder.h" 15 #include "webrtc/api/android/jni/classreferenceholder.h"
16 #include "webrtc/api/java/jni/jni_helpers.h" 16 #include "webrtc/api/android/jni/jni_helpers.h"
17 #include "webrtc/base/bind.h" 17 #include "webrtc/base/bind.h"
18 #include "webrtc/base/common.h" 18 #include "webrtc/base/common.h"
19 #include "webrtc/base/ipaddress.h" 19 #include "webrtc/base/ipaddress.h"
20 20
21 namespace webrtc_jni { 21 namespace webrtc_jni {
22 22
23 jobject AndroidNetworkMonitor::application_context_ = nullptr; 23 jobject AndroidNetworkMonitor::application_context_ = nullptr;
24 24
25 static NetworkType GetNetworkTypeFromJava(JNIEnv* jni, jobject j_network_type) { 25 static NetworkType GetNetworkTypeFromJava(JNIEnv* jni, jobject j_network_type) {
26 std::string enum_name = 26 std::string enum_name =
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 JOW(void, NetworkMonitor_nativeNotifyOfNetworkDisconnect)( 367 JOW(void, NetworkMonitor_nativeNotifyOfNetworkDisconnect)(
368 JNIEnv* jni, jobject j_monitor, jlong j_native_monitor, 368 JNIEnv* jni, jobject j_monitor, jlong j_native_monitor,
369 jint network_handle) { 369 jint network_handle) {
370 AndroidNetworkMonitor* network_monitor = 370 AndroidNetworkMonitor* network_monitor =
371 reinterpret_cast<AndroidNetworkMonitor*>(j_native_monitor); 371 reinterpret_cast<AndroidNetworkMonitor*>(j_native_monitor);
372 network_monitor->OnNetworkDisconnected( 372 network_monitor->OnNetworkDisconnected(
373 static_cast<NetworkHandle>(network_handle)); 373 static_cast<NetworkHandle>(network_handle));
374 } 374 }
375 375
376 } // namespace webrtc_jni 376 } // namespace webrtc_jni
OLDNEW
« no previous file with comments | « webrtc/api/android/jni/androidnetworkmonitor_jni.h ('k') | webrtc/api/android/jni/androidvideocapturer_jni.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698