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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 scoped_refptr<net::DrainableIOBuffer> write_buffer_; | 65 scoped_refptr<net::DrainableIOBuffer> write_buffer_; |
66 | 66 |
67 bool connected_; | 67 bool connected_; |
68 | 68 |
69 net::OldCompletionCallbackImpl<P2PSocketHostTcp> connect_callback_; | |
70 net::OldCompletionCallbackImpl<P2PSocketHostTcp> read_callback_; | |
71 net::OldCompletionCallbackImpl<P2PSocketHostTcp> write_callback_; | |
72 | |
73 DISALLOW_COPY_AND_ASSIGN(P2PSocketHostTcp); | 69 DISALLOW_COPY_AND_ASSIGN(P2PSocketHostTcp); |
74 }; | 70 }; |
75 | 71 |
76 } // namespace content | 72 } // namespace content |
77 | 73 |
78 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_TCP_H_ | 74 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_TCP_H_ |
OLD | NEW |