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_SDK_ANDROID_SRC_JNI_ANDROIDNETWORKMONITOR_JNI_H_ | 11 #ifndef WEBRTC_SDK_ANDROID_SRC_JNI_PC_ANDROIDNETWORKMONITOR_JNI_H_ |
12 #define WEBRTC_SDK_ANDROID_SRC_JNI_ANDROIDNETWORKMONITOR_JNI_H_ | 12 #define WEBRTC_SDK_ANDROID_SRC_JNI_PC_ANDROIDNETWORKMONITOR_JNI_H_ |
| 13 |
| 14 #include <stdint.h> |
| 15 #include <map> |
| 16 #include <string> |
| 17 #include <vector> |
13 | 18 |
14 #include "webrtc/rtc_base/networkmonitor.h" | 19 #include "webrtc/rtc_base/networkmonitor.h" |
15 | |
16 #include <stdint.h> | |
17 | |
18 #include <map> | |
19 | |
20 #include "webrtc/rtc_base/thread_checker.h" | 20 #include "webrtc/rtc_base/thread_checker.h" |
21 #include "webrtc/sdk/android/src/jni/jni_helpers.h" | 21 #include "webrtc/sdk/android/src/jni/jni_helpers.h" |
22 | 22 |
23 namespace webrtc_jni { | 23 namespace webrtc_jni { |
24 | 24 |
25 typedef int64_t NetworkHandle; | 25 typedef int64_t NetworkHandle; |
26 | 26 |
27 // c++ equivalent of java NetworkMonitorAutoDetect.ConnectionType. | 27 // c++ equivalent of java NetworkMonitorAutoDetect.ConnectionType. |
28 enum NetworkType { | 28 enum NetworkType { |
29 NETWORK_UNKNOWN, | 29 NETWORK_UNKNOWN, |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 87 |
88 class AndroidNetworkMonitorFactory : public rtc::NetworkMonitorFactory { | 88 class AndroidNetworkMonitorFactory : public rtc::NetworkMonitorFactory { |
89 public: | 89 public: |
90 AndroidNetworkMonitorFactory() {} | 90 AndroidNetworkMonitorFactory() {} |
91 | 91 |
92 rtc::NetworkMonitorInterface* CreateNetworkMonitor() override; | 92 rtc::NetworkMonitorInterface* CreateNetworkMonitor() override; |
93 }; | 93 }; |
94 | 94 |
95 } // namespace webrtc_jni | 95 } // namespace webrtc_jni |
96 | 96 |
97 #endif // WEBRTC_SDK_ANDROID_SRC_JNI_ANDROIDNETWORKMONITOR_JNI_H_ | 97 #endif // WEBRTC_SDK_ANDROID_SRC_JNI_PC_ANDROIDNETWORKMONITOR_JNI_H_ |
OLD | NEW |