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

Unified Diff: net/base/network_change_notifier.cc

Issue 1416213003: Add DatagramClientSocket::BindToDefaultNetwork(),GetBoundNetwork() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/network_change_notifier.h ('k') | net/dns/address_sorter_posix_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/network_change_notifier.cc
diff --git a/net/base/network_change_notifier.cc b/net/base/network_change_notifier.cc
index fb480e9705f2c418b32ca57a2e80888fd9c20aa0..c51eb8752d4c365ccf7c63b5500675817397980d 100644
--- a/net/base/network_change_notifier.cc
+++ b/net/base/network_change_notifier.cc
@@ -11,6 +11,7 @@
#include "base/synchronization/lock.h"
#include "base/threading/thread_checker.h"
#include "build/build_config.h"
+#include "net/base/net_errors.h"
#include "net/base/net_util.h"
#include "net/base/network_change_notifier_factory.h"
#include "net/base/network_interfaces.h"
@@ -652,11 +653,11 @@ NetworkChangeNotifier::GetNetworkConnectionType(NetworkHandle network) {
}
// static
-NetworkChangeNotifier::NetworkHandle
-NetworkChangeNotifier::GetDefaultNetwork() {
+int NetworkChangeNotifier::GetDefaultNetwork(
+ NetworkChangeNotifier::NetworkHandle* network) {
return g_network_change_notifier
- ? g_network_change_notifier->GetCurrentDefaultNetwork()
- : kInvalidNetworkHandle;
+ ? g_network_change_notifier->GetCurrentDefaultNetwork(network)
+ : ERR_FAILED;
}
// static
@@ -989,9 +990,9 @@ NetworkChangeNotifier::GetCurrentNetworkConnectionType(
return CONNECTION_UNKNOWN;
}
-NetworkChangeNotifier::NetworkHandle
-NetworkChangeNotifier::GetCurrentDefaultNetwork() const {
- return kInvalidNetworkHandle;
+int NetworkChangeNotifier::GetCurrentDefaultNetwork(
+ NetworkChangeNotifier::NetworkHandle* network) const {
+ return ERR_NOT_IMPLEMENTED;
}
// static
« no previous file with comments | « net/base/network_change_notifier.h ('k') | net/dns/address_sorter_posix_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698