| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |