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

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

Issue 1345433002: Add RTC_ prefix to contructormagic macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Formatting fix. Created 5 years, 3 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
« no previous file with comments | « webrtc/base/sigslottester.h.pump ('k') | webrtc/base/socketadapters.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 #undef EUSERS 102 #undef EUSERS
103 #define EUSERS WSAEUSERS 103 #define EUSERS WSAEUSERS
104 #undef EDQUOT 104 #undef EDQUOT
105 #define EDQUOT WSAEDQUOT 105 #define EDQUOT WSAEDQUOT
106 #undef ESTALE 106 #undef ESTALE
107 #define ESTALE WSAESTALE 107 #define ESTALE WSAESTALE
108 #undef EREMOTE 108 #undef EREMOTE
109 #define EREMOTE WSAEREMOTE 109 #define EREMOTE WSAEREMOTE
110 #undef EACCES 110 #undef EACCES
111 #define SOCKET_EACCES WSAEACCES 111 #define SOCKET_EACCES WSAEACCES
112 #endif // WEBRTC_WIN 112 #endif // WEBRTC_WIN
113 113
114 #if defined(WEBRTC_POSIX) 114 #if defined(WEBRTC_POSIX)
115 #define INVALID_SOCKET (-1) 115 #define INVALID_SOCKET (-1)
116 #define SOCKET_ERROR (-1) 116 #define SOCKET_ERROR (-1)
117 #define closesocket(s) close(s) 117 #define closesocket(s) close(s)
118 #endif // WEBRTC_POSIX 118 #endif // WEBRTC_POSIX
119 119
120 namespace rtc { 120 namespace rtc {
121 121
122 inline bool IsBlockingError(int e) { 122 inline bool IsBlockingError(int e) {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 // This is specific to libjingle and will be used 173 // This is specific to libjingle and will be used
174 // if SendTime option is needed at socket level. 174 // if SendTime option is needed at socket level.
175 }; 175 };
176 virtual int GetOption(Option opt, int* value) = 0; 176 virtual int GetOption(Option opt, int* value) = 0;
177 virtual int SetOption(Option opt, int value) = 0; 177 virtual int SetOption(Option opt, int value) = 0;
178 178
179 protected: 179 protected:
180 Socket() {} 180 Socket() {}
181 181
182 private: 182 private:
183 DISALLOW_COPY_AND_ASSIGN(Socket); 183 RTC_DISALLOW_COPY_AND_ASSIGN(Socket);
184 }; 184 };
185 185
186 } // namespace rtc 186 } // namespace rtc
187 187
188 #endif // WEBRTC_BASE_SOCKET_H__ 188 #endif // WEBRTC_BASE_SOCKET_H__
OLDNEW
« no previous file with comments | « webrtc/base/sigslottester.h.pump ('k') | webrtc/base/socketadapters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698