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

Side by Side Diff: webrtc/api/java/jni/androidnetworkmonitor_jni.h

Issue 1803063004: Reset the BWE when the network changes (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 4 years, 9 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
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 NetworkType type; 43 NetworkType type;
44 std::vector<rtc::IPAddress> ip_addresses; 44 std::vector<rtc::IPAddress> ip_addresses;
45 45
46 std::string ToString() const; 46 std::string ToString() const;
47 }; 47 };
48 48
49 class AndroidNetworkMonitor : public rtc::NetworkMonitorBase, 49 class AndroidNetworkMonitor : public rtc::NetworkMonitorBase,
50 public rtc::NetworkBinderInterface { 50 public rtc::NetworkBinderInterface {
51 public: 51 public:
52 AndroidNetworkMonitor(); 52 AndroidNetworkMonitor();
53 ~AndroidNetworkMonitor() override;
53 54
54 static void SetAndroidContext(JNIEnv* jni, jobject context); 55 static void SetAndroidContext(JNIEnv* jni, jobject context);
55 56
56 void Start() override; 57 void Start() override;
57 void Stop() override; 58 void Stop() override;
58 59
59 int BindSocketToNetwork(int socket_fd, 60 int BindSocketToNetwork(int socket_fd,
60 const rtc::IPAddress& address) override; 61 const rtc::IPAddress& address) override;
61 rtc::AdapterType GetAdapterType(const std::string& if_name) override; 62 rtc::AdapterType GetAdapterType(const std::string& if_name) override;
62 void OnNetworkConnected(const NetworkInformation& network_info); 63 void OnNetworkConnected(const NetworkInformation& network_info);
(...skipping 19 matching lines...) Expand all
82 class AndroidNetworkMonitorFactory : public rtc::NetworkMonitorFactory { 83 class AndroidNetworkMonitorFactory : public rtc::NetworkMonitorFactory {
83 public: 84 public:
84 AndroidNetworkMonitorFactory() {} 85 AndroidNetworkMonitorFactory() {}
85 86
86 rtc::NetworkMonitorInterface* CreateNetworkMonitor() override; 87 rtc::NetworkMonitorInterface* CreateNetworkMonitor() override;
87 }; 88 };
88 89
89 } // namespace webrtc_jni 90 } // namespace webrtc_jni
90 91
91 #endif // WEBRTC_API_JAVA_JNI_ANDROIDNETWORKMONITOR_JNI_H_ 92 #endif // WEBRTC_API_JAVA_JNI_ANDROIDNETWORKMONITOR_JNI_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/api/java/jni/androidnetworkmonitor_jni.cc » ('j') | webrtc/base/networkmonitor.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698