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 #ifndef WEBRTC_API_JAVA_JNI_ANDROIDNETWORKMONITOR_JNI_H_ | 11 #ifndef WEBRTC_API_JAVA_JNI_ANDROIDNETWORKMONITOR_JNI_H_ |
12 #define WEBRTC_API_JAVA_JNI_ANDROIDNETWORKMONITOR_JNI_H_ | 12 #define WEBRTC_API_JAVA_JNI_ANDROIDNETWORKMONITOR_JNI_H_ |
13 | 13 |
14 #include "webrtc/base/networkmonitor.h" | 14 #include "webrtc/base/networkmonitor.h" |
15 | 15 |
16 #include <map> | 16 #include <map> |
17 | 17 |
18 #include "webrtc/api/android/jni/jni_helpers.h" | 18 #include "webrtc/api/java/jni/jni_helpers.h" |
19 #include "webrtc/base/basictypes.h" | 19 #include "webrtc/base/basictypes.h" |
20 #include "webrtc/base/thread_checker.h" | 20 #include "webrtc/base/thread_checker.h" |
21 | 21 |
22 namespace webrtc_jni { | 22 namespace webrtc_jni { |
23 | 23 |
24 typedef uint32_t NetworkHandle; | 24 typedef uint32_t NetworkHandle; |
25 | 25 |
26 // c++ equivalent of java NetworkMonitorAutoDetect.ConnectionType. | 26 // c++ equivalent of java NetworkMonitorAutoDetect.ConnectionType. |
27 enum NetworkType { | 27 enum NetworkType { |
28 NETWORK_UNKNOWN, | 28 NETWORK_UNKNOWN, |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 class AndroidNetworkMonitorFactory : public rtc::NetworkMonitorFactory { | 83 class AndroidNetworkMonitorFactory : public rtc::NetworkMonitorFactory { |
84 public: | 84 public: |
85 AndroidNetworkMonitorFactory() {} | 85 AndroidNetworkMonitorFactory() {} |
86 | 86 |
87 rtc::NetworkMonitorInterface* CreateNetworkMonitor() override; | 87 rtc::NetworkMonitorInterface* CreateNetworkMonitor() override; |
88 }; | 88 }; |
89 | 89 |
90 } // namespace webrtc_jni | 90 } // namespace webrtc_jni |
91 | 91 |
92 #endif // WEBRTC_API_JAVA_JNI_ANDROIDNETWORKMONITOR_JNI_H_ | 92 #endif // WEBRTC_API_JAVA_JNI_ANDROIDNETWORKMONITOR_JNI_H_ |
OLD | NEW |