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

Unified Diff: webrtc/base/nullsocketserver.h

Issue 1891293002: Adds clearer function to create rtc::Thread without Physical SocketServer (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 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 | « webrtc/base/messagequeue_unittest.cc ('k') | webrtc/base/nullsocketserver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/nullsocketserver.h
diff --git a/webrtc/base/nullsocketserver.h b/webrtc/base/nullsocketserver.h
index 5378e43158cd465d2838b4884f92a9353024ef07..e59f2fafe589c960cd2e40798fd203974a67f1ae 100644
--- a/webrtc/base/nullsocketserver.h
+++ b/webrtc/base/nullsocketserver.h
@@ -12,48 +12,25 @@
#define WEBRTC_BASE_NULLSOCKETSERVER_H_
#include "webrtc/base/event.h"
-#include "webrtc/base/physicalsocketserver.h"
+#include "webrtc/base/socketserver.h"
namespace rtc {
-// NullSocketServer
-
-class NullSocketServer : public rtc::SocketServer {
+class NullSocketServer : public SocketServer {
public:
- NullSocketServer() : event_(false, false) {}
-
- virtual bool Wait(int cms, bool process_io) {
- event_.Wait(cms);
- return true;
- }
-
- virtual void WakeUp() {
- event_.Set();
- }
-
- virtual rtc::Socket* CreateSocket(int type) {
- ASSERT(false);
- return NULL;
- }
-
- virtual rtc::Socket* CreateSocket(int family, int type) {
- ASSERT(false);
- return NULL;
- }
-
- virtual rtc::AsyncSocket* CreateAsyncSocket(int type) {
- ASSERT(false);
- return NULL;
- }
+ NullSocketServer();
+ ~NullSocketServer() override;
- virtual rtc::AsyncSocket* CreateAsyncSocket(int family, int type) {
- ASSERT(false);
- return NULL;
- }
+ bool Wait(int cms, bool process_io) override;
+ void WakeUp() override;
+ Socket* CreateSocket(int type) override;
+ Socket* CreateSocket(int family, int type) override;
+ AsyncSocket* CreateAsyncSocket(int type) override;
+ AsyncSocket* CreateAsyncSocket(int family, int type) override;
private:
- rtc::Event event_;
+ Event event_;
};
} // namespace rtc
« no previous file with comments | « webrtc/base/messagequeue_unittest.cc ('k') | webrtc/base/nullsocketserver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698