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

Side by Side Diff: webrtc/base/socketserver.h

Issue 2646863005: Fixing logic for using android_setsocknetwork() with bind(). (Closed)
Patch Set: Fixing tests for loopback IP change. Created 3 years, 10 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
1 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_BASE_SOCKETSERVER_H_ 11 #ifndef WEBRTC_BASE_SOCKETSERVER_H_
12 #define WEBRTC_BASE_SOCKETSERVER_H_ 12 #define WEBRTC_BASE_SOCKETSERVER_H_
13 13
14 #include <memory> 14 #include <memory>
15 #include "webrtc/base/socketfactory.h" 15 #include "webrtc/base/socketfactory.h"
16 16
17 namespace rtc { 17 namespace rtc {
18 18
19 class MessageQueue; 19 class MessageQueue;
20 // Needs to be forward declared because there's a circular dependency between
21 // NetworkMonitor and Thread.
22 // TODO(deadbeef): Fix this.
20 class NetworkBinderInterface; 23 class NetworkBinderInterface;
21 24
22 // Provides the ability to wait for activity on a set of sockets. The Thread 25 // Provides the ability to wait for activity on a set of sockets. The Thread
23 // class provides a nice wrapper on a socket server. 26 // class provides a nice wrapper on a socket server.
24 // 27 //
25 // The server is also a socket factory. The sockets it creates will be 28 // The server is also a socket factory. The sockets it creates will be
26 // notified of asynchronous I/O from this server's Wait method. 29 // notified of asynchronous I/O from this server's Wait method.
27 class SocketServer : public SocketFactory { 30 class SocketServer : public SocketFactory {
28 public: 31 public:
29 static const int kForever = -1; 32 static const int kForever = -1;
(...skipping 20 matching lines...) Expand all
50 } 53 }
51 NetworkBinderInterface* network_binder() const { return network_binder_; } 54 NetworkBinderInterface* network_binder() const { return network_binder_; }
52 55
53 private: 56 private:
54 NetworkBinderInterface* network_binder_ = nullptr; 57 NetworkBinderInterface* network_binder_ = nullptr;
55 }; 58 };
56 59
57 } // namespace rtc 60 } // namespace rtc
58 61
59 #endif // WEBRTC_BASE_SOCKETSERVER_H_ 62 #endif // WEBRTC_BASE_SOCKETSERVER_H_
OLDNEW
« no previous file with comments | « webrtc/base/physicalsocketserver_unittest.cc ('k') | webrtc/sdk/android/src/jni/androidnetworkmonitor_jni.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698