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

Side by Side Diff: webrtc/base/nullsocketserver.cc

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: year 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 unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #ifndef WEBRTC_BASE_NULLSOCKETSERVER_H__
stefan-webrtc 2016/04/19 08:29:33 No need for these in a .cc file, right?
danilchap 2016/04/19 09:43:09 Oops, removed.
12 #define WEBRTC_BASE_NULLSOCKETSERVER_H__
13
14 #include "webrtc/base/checks.h"
15 #include "webrtc/base/nullsocketserver.h"
16
17 namespace rtc {
18
19 NullSocketServer::NullSocketServer() : event_(false, false) {}
20 NullSocketServer::~NullSocketServer() {}
21
22 bool NullSocketServer::Wait(int cms, bool process_io) {
23 event_.Wait(cms);
24 return true;
25 }
26
27 void NullSocketServer::WakeUp() {
28 event_.Set();
29 }
30
31 rtc::Socket* NullSocketServer::CreateSocket(int /* type */) {
32 RTC_NOTREACHED();
33 return nullptr;
34 }
35
36 rtc::Socket* NullSocketServer::CreateSocket(int /* family */, int /* type */) {
37 RTC_NOTREACHED();
38 return nullptr;
39 }
40
41 rtc::AsyncSocket* NullSocketServer::CreateAsyncSocket(int /* type */) {
42 RTC_NOTREACHED();
43 return nullptr;
44 }
45
46 rtc::AsyncSocket* NullSocketServer::CreateAsyncSocket(int /* family */,
47 int /* type */) {
48 RTC_NOTREACHED();
49 return nullptr;
50 }
51
52 } // namespace rtc
53 #endif // WEBRTC_BASE_NULLSOCKETSERVER_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698