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

Side by Side Diff: webrtc/test/channel_transport/udp_socket_posix.h

Issue 1591333002: Remove dependency on ConditionVariableWrapper and CriticalSectionWrapper in UdpSocketPosix. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Remove unnecessary fwd decl 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 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_TEST_CHANNEL_TRANSPORT_UDP_SOCKET_POSIX_H_ 11 #ifndef WEBRTC_TEST_CHANNEL_TRANSPORT_UDP_SOCKET_POSIX_H_
12 #define WEBRTC_TEST_CHANNEL_TRANSPORT_UDP_SOCKET_POSIX_H_ 12 #define WEBRTC_TEST_CHANNEL_TRANSPORT_UDP_SOCKET_POSIX_H_
13 13
14 #include <arpa/inet.h> 14 #include <arpa/inet.h>
15 #include <netinet/in.h> 15 #include <netinet/in.h>
16 #include <sys/socket.h> 16 #include <sys/socket.h>
17 #include <sys/types.h> 17 #include <sys/types.h>
18 18
19 #include "webrtc/system_wrappers/include/condition_variable_wrapper.h" 19 #include "webrtc/base/event.h"
20 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" 20 #include "webrtc/base/criticalsection.h"
21 #include "webrtc/test/channel_transport/udp_socket_wrapper.h" 21 #include "webrtc/test/channel_transport/udp_socket_wrapper.h"
22 22
23 namespace webrtc { 23 namespace webrtc {
24 namespace test { 24 namespace test {
25 25
26 #define SOCKET_ERROR -1 26 #define SOCKET_ERROR -1
27 27
28 class UdpSocketPosix : public UdpSocketWrapper 28 class UdpSocketPosix : public UdpSocketWrapper
29 { 29 {
30 public: 30 public:
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 void ReadyForDeletion(); 71 void ReadyForDeletion();
72 private: 72 private:
73 friend class UdpSocketManagerPosix; 73 friend class UdpSocketManagerPosix;
74 74
75 const int32_t _id; 75 const int32_t _id;
76 IncomingSocketCallback _incomingCb; 76 IncomingSocketCallback _incomingCb;
77 CallbackObj _obj; 77 CallbackObj _obj;
78 78
79 SOCKET _socket; 79 SOCKET _socket;
80 UdpSocketManager* _mgr; 80 UdpSocketManager* _mgr;
81 ConditionVariableWrapper* _closeBlockingCompletedCond; 81 rtc::Event _closeBlockingCompletedCond;
82 ConditionVariableWrapper* _readyForDeletionCond; 82 rtc::Event _readyForDeletionCond;
83 83
84 bool _closeBlockingActive; 84 bool _closeBlockingActive;
85 bool _closeBlockingCompleted; 85 bool _closeBlockingCompleted;
86 bool _readyForDeletion; 86 bool _readyForDeletion;
87 87
88 CriticalSectionWrapper* _cs; 88 rtc::CriticalSection _cs;
89 }; 89 };
90 90
91 } // namespace test 91 } // namespace test
92 } // namespace webrtc 92 } // namespace webrtc
93 93
94 #endif // WEBRTC_TEST_CHANNEL_TRANSPORT_UDP_SOCKET_POSIX_H_ 94 #endif // WEBRTC_TEST_CHANNEL_TRANSPORT_UDP_SOCKET_POSIX_H_
OLDNEW
« no previous file with comments | « webrtc/test/channel_transport/udp_socket_manager_posix.h ('k') | webrtc/test/channel_transport/udp_socket_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698