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

Side by Side Diff: webrtc/sdk/android/src/jni/pc/androidnetworkmonitor_jni.h

Issue 3009613002: Android: Replace webrtc_jni namespace with nested jni namespace (Closed)
Patch Set: Rebase Created 3 years, 3 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 #ifndef WEBRTC_SDK_ANDROID_SRC_JNI_PC_ANDROIDNETWORKMONITOR_JNI_H_ 11 #ifndef WEBRTC_SDK_ANDROID_SRC_JNI_PC_ANDROIDNETWORKMONITOR_JNI_H_
12 #define WEBRTC_SDK_ANDROID_SRC_JNI_PC_ANDROIDNETWORKMONITOR_JNI_H_ 12 #define WEBRTC_SDK_ANDROID_SRC_JNI_PC_ANDROIDNETWORKMONITOR_JNI_H_
13 13
14 #include <stdint.h> 14 #include <stdint.h>
15 #include <map> 15 #include <map>
16 #include <string> 16 #include <string>
17 #include <vector> 17 #include <vector>
18 18
19 #include "webrtc/rtc_base/networkmonitor.h" 19 #include "webrtc/rtc_base/networkmonitor.h"
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 {
24 namespace jni {
24 25
25 typedef int64_t NetworkHandle; 26 typedef int64_t NetworkHandle;
26 27
27 // c++ equivalent of java NetworkMonitorAutoDetect.ConnectionType. 28 // c++ equivalent of java NetworkMonitorAutoDetect.ConnectionType.
28 enum NetworkType { 29 enum NetworkType {
29 NETWORK_UNKNOWN, 30 NETWORK_UNKNOWN,
30 NETWORK_ETHERNET, 31 NETWORK_ETHERNET,
31 NETWORK_WIFI, 32 NETWORK_WIFI,
32 NETWORK_4G, 33 NETWORK_4G,
33 NETWORK_3G, 34 NETWORK_3G,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 std::map<NetworkHandle, NetworkInformation> network_info_by_handle_; 86 std::map<NetworkHandle, NetworkInformation> network_info_by_handle_;
86 }; 87 };
87 88
88 class AndroidNetworkMonitorFactory : public rtc::NetworkMonitorFactory { 89 class AndroidNetworkMonitorFactory : public rtc::NetworkMonitorFactory {
89 public: 90 public:
90 AndroidNetworkMonitorFactory() {} 91 AndroidNetworkMonitorFactory() {}
91 92
92 rtc::NetworkMonitorInterface* CreateNetworkMonitor() override; 93 rtc::NetworkMonitorInterface* CreateNetworkMonitor() override;
93 }; 94 };
94 95
96 } // namespace jni
97 } // namespace webrtc
98
99 // TODO(magjed): Remove once external clients are updated.
100 namespace webrtc_jni {
101
102 using webrtc::jni::AndroidNetworkMonitor;
103 using webrtc::jni::AndroidNetworkMonitorFactory;
104
95 } // namespace webrtc_jni 105 } // namespace webrtc_jni
96 106
97 #endif // WEBRTC_SDK_ANDROID_SRC_JNI_PC_ANDROIDNETWORKMONITOR_JNI_H_ 107 #endif // WEBRTC_SDK_ANDROID_SRC_JNI_PC_ANDROIDNETWORKMONITOR_JNI_H_
OLDNEW
« no previous file with comments | « webrtc/sdk/android/src/jni/nv21buffer_jni.cc ('k') | webrtc/sdk/android/src/jni/pc/androidnetworkmonitor_jni.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698