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

Unified Diff: webrtc/base/asynctcpsocket.h

Issue 1737053006: Don't allocate buffers for listening sockets. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/base/asynctcpsocket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/asynctcpsocket.h
diff --git a/webrtc/base/asynctcpsocket.h b/webrtc/base/asynctcpsocket.h
index 321fa234938a8e9582ffc733710226ad7a460344..b0d0399e344798bab8a8866b8b5a3dcb30f97c16 100644
--- a/webrtc/base/asynctcpsocket.h
+++ b/webrtc/base/asynctcpsocket.h
@@ -71,7 +71,8 @@ class AsyncTCPSocketBase : public AsyncPacketSocket {
scoped_ptr<AsyncSocket> socket_;
bool listen_;
- char* inbuf_, * outbuf_;
+ scoped_ptr<char[]> inbuf_;
+ scoped_ptr<char[]> outbuf_;
size_t insize_, inpos_, outsize_, outpos_;
RTC_DISALLOW_COPY_AND_ASSIGN(AsyncTCPSocketBase);
« no previous file with comments | « no previous file | webrtc/base/asynctcpsocket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698