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

Side by Side Diff: webrtc/base/asynctcpsocket.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/asyncpacketsocket.h ('k') | webrtc/base/autodetectproxy.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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 void OnConnectEvent(AsyncSocket* socket); 67 void OnConnectEvent(AsyncSocket* socket);
68 void OnReadEvent(AsyncSocket* socket); 68 void OnReadEvent(AsyncSocket* socket);
69 void OnWriteEvent(AsyncSocket* socket); 69 void OnWriteEvent(AsyncSocket* socket);
70 void OnCloseEvent(AsyncSocket* socket, int error); 70 void OnCloseEvent(AsyncSocket* socket, int error);
71 71
72 scoped_ptr<AsyncSocket> socket_; 72 scoped_ptr<AsyncSocket> socket_;
73 bool listen_; 73 bool listen_;
74 char* inbuf_, * outbuf_; 74 char* inbuf_, * outbuf_;
75 size_t insize_, inpos_, outsize_, outpos_; 75 size_t insize_, inpos_, outsize_, outpos_;
76 76
77 DISALLOW_COPY_AND_ASSIGN(AsyncTCPSocketBase); 77 RTC_DISALLOW_COPY_AND_ASSIGN(AsyncTCPSocketBase);
78 }; 78 };
79 79
80 class AsyncTCPSocket : public AsyncTCPSocketBase { 80 class AsyncTCPSocket : public AsyncTCPSocketBase {
81 public: 81 public:
82 // Binds and connects |socket| and creates AsyncTCPSocket for 82 // Binds and connects |socket| and creates AsyncTCPSocket for
83 // it. Takes ownership of |socket|. Returns NULL if bind() or 83 // it. Takes ownership of |socket|. Returns NULL if bind() or
84 // connect() fail (|socket| is destroyed in that case). 84 // connect() fail (|socket| is destroyed in that case).
85 static AsyncTCPSocket* Create(AsyncSocket* socket, 85 static AsyncTCPSocket* Create(AsyncSocket* socket,
86 const SocketAddress& bind_address, 86 const SocketAddress& bind_address,
87 const SocketAddress& remote_address); 87 const SocketAddress& remote_address);
88 AsyncTCPSocket(AsyncSocket* socket, bool listen); 88 AsyncTCPSocket(AsyncSocket* socket, bool listen);
89 ~AsyncTCPSocket() override {} 89 ~AsyncTCPSocket() override {}
90 90
91 int Send(const void* pv, 91 int Send(const void* pv,
92 size_t cb, 92 size_t cb,
93 const rtc::PacketOptions& options) override; 93 const rtc::PacketOptions& options) override;
94 void ProcessInput(char* data, size_t* len) override; 94 void ProcessInput(char* data, size_t* len) override;
95 void HandleIncomingConnection(AsyncSocket* socket) override; 95 void HandleIncomingConnection(AsyncSocket* socket) override;
96 96
97 private: 97 private:
98 DISALLOW_COPY_AND_ASSIGN(AsyncTCPSocket); 98 RTC_DISALLOW_COPY_AND_ASSIGN(AsyncTCPSocket);
99 }; 99 };
100 100
101 } // namespace rtc 101 } // namespace rtc
102 102
103 #endif // WEBRTC_BASE_ASYNCTCPSOCKET_H_ 103 #endif // WEBRTC_BASE_ASYNCTCPSOCKET_H_
OLDNEW
« no previous file with comments | « webrtc/base/asyncpacketsocket.h ('k') | webrtc/base/autodetectproxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698