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

Unified Diff: webrtc/base/physicalsocketserver.h

Issue 1556743002: Bind a socket to a network if the network handle is set. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix a compiling issue for Windows Created 4 years, 11 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
Index: webrtc/base/physicalsocketserver.h
diff --git a/webrtc/base/physicalsocketserver.h b/webrtc/base/physicalsocketserver.h
index ae1f10f596d8b66b49ab5372b1ad4c52186c4321..edffd3bdfd7213161270e32e631e712d2322c682 100644
--- a/webrtc/base/physicalsocketserver.h
+++ b/webrtc/base/physicalsocketserver.h
@@ -15,6 +15,7 @@
#include "webrtc/base/asyncfile.h"
#include "webrtc/base/nethelpers.h"
+#include "webrtc/base/networkmonitor.h"
#include "webrtc/base/scoped_ptr.h"
#include "webrtc/base/socketserver.h"
#include "webrtc/base/criticalsection.h"
@@ -74,10 +75,13 @@ class PhysicalSocketServer : public SocketServer {
// SocketServer:
bool Wait(int cms, bool process_io) override;
void WakeUp() override;
+ void MaybeSetNetworkBinder() override;
pthatcher1 2016/01/14 20:07:24 This could use a comment, about what "maybe" means
honghaiz3 2016/01/15 01:00:38 Removed this.
void Add(Dispatcher* dispatcher);
void Remove(Dispatcher* dispatcher);
+ NetworkBinderInterface* network_binder() { return network_binder_; }
+
#if defined(WEBRTC_POSIX)
AsyncFile* CreateFile(int fd);
@@ -114,6 +118,7 @@ class PhysicalSocketServer : public SocketServer {
#if defined(WEBRTC_WIN)
WSAEVENT socket_ev_;
#endif
+ NetworkBinderInterface* network_binder_ = nullptr;
};
class PhysicalSocket : public AsyncSocket, public sigslot::has_slots<> {

Powered by Google App Engine
This is Rietveld 408576698