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

Side by Side Diff: content/browser/renderer_host/p2p/socket_host_tcp.h

Issue 13926013: Fix P2PSocketHostTcp to handle async write correctly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/renderer_host/p2p/socket_host_tcp.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_TCP_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_TCP_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_TCP_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_TCP_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 void OnRead(int result); 58 void OnRead(int result);
59 void OnWritten(int result); 59 void OnWritten(int result);
60 60
61 net::IPEndPoint remote_address_; 61 net::IPEndPoint remote_address_;
62 62
63 scoped_ptr<net::StreamSocket> socket_; 63 scoped_ptr<net::StreamSocket> socket_;
64 scoped_refptr<net::GrowableIOBuffer> read_buffer_; 64 scoped_refptr<net::GrowableIOBuffer> read_buffer_;
65 65
66 std::queue<scoped_refptr<net::DrainableIOBuffer> > write_queue_; 66 std::queue<scoped_refptr<net::DrainableIOBuffer> > write_queue_;
67 scoped_refptr<net::DrainableIOBuffer> write_buffer_; 67 scoped_refptr<net::DrainableIOBuffer> write_buffer_;
68 bool write_pending_;
68 69
69 bool connected_; 70 bool connected_;
70 71
71 DISALLOW_COPY_AND_ASSIGN(P2PSocketHostTcp); 72 DISALLOW_COPY_AND_ASSIGN(P2PSocketHostTcp);
72 }; 73 };
73 74
74 } // namespace content 75 } // namespace content
75 76
76 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_TCP_H_ 77 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_TCP_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/p2p/socket_host_tcp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698