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

Unified Diff: webrtc/base/networkmonitor.cc

Issue 1535943004: Multi-networking with Android L. Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/base/networkmonitor.h ('k') | webrtc/base/physicalsocketserver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/networkmonitor.cc
diff --git a/webrtc/base/networkmonitor.cc b/webrtc/base/networkmonitor.cc
index 92bf0592b5fa3932b243968c93b3759c1e93365d..30e7f4cfc85cb23b859e8a835d5f86ede14f1a92 100644
--- a/webrtc/base/networkmonitor.cc
+++ b/webrtc/base/networkmonitor.cc
@@ -10,6 +10,7 @@
#include "webrtc/base/networkmonitor.h"
+#include "webrtc/base/bind.h"
#include "webrtc/base/common.h"
namespace {
@@ -34,6 +35,24 @@ void NetworkMonitorBase::OnNetworksChanged() {
thread_->Post(this, UPDATE_NETWORKS_MESSAGE);
}
+
+void NetworkMonitorBase::OnNetworkAvailable(
+ const NetworkInformation& network_info) {
+ LOG(LS_VERBOSE) << "Network available: " << network_info.interface_name;
+ thread_->Invoke<void>(rtc::Bind(
+ &NetworkMonitorBase::OnNetworkAvailable_w, this, network_info));
+}
+
+void NetworkMonitorBase::OnNetworkAvailable_w(
+ const NetworkInformation& network_info) {
+ SignalNetworkAvailable(network_info);
+}
+
+bool NetworkMonitorBase::GetAllNetworkInfos(
+ std::vector<NetworkInformation>* network_infos) {
+ return false;
+}
+
void NetworkMonitorBase::OnMessage(Message* msg) {
ASSERT(msg->message_id == UPDATE_NETWORKS_MESSAGE);
SignalNetworksChanged();
« no previous file with comments | « webrtc/base/networkmonitor.h ('k') | webrtc/base/physicalsocketserver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698