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 NET_CURVECP_CURVECP_CLIENT_SOCKET_H_ | 5 #ifndef NET_CURVECP_CURVECP_CLIENT_SOCKET_H_ |
6 #define NET_CURVECP_CURVECP_CLIENT_SOCKET_H_ | 6 #define NET_CURVECP_CURVECP_CLIENT_SOCKET_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "net/base/completion_callback.h" | 10 #include "net/base/completion_callback.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // Socket implementation. | 44 // Socket implementation. |
45 virtual int Read(IOBuffer* buf, | 45 virtual int Read(IOBuffer* buf, |
46 int buf_len, | 46 int buf_len, |
47 OldCompletionCallback* callback) OVERRIDE; | 47 OldCompletionCallback* callback) OVERRIDE; |
48 virtual int Read(IOBuffer* buf, | 48 virtual int Read(IOBuffer* buf, |
49 int buf_len, | 49 int buf_len, |
50 const CompletionCallback& callback) OVERRIDE; | 50 const CompletionCallback& callback) OVERRIDE; |
51 virtual int Write(IOBuffer* buf, | 51 virtual int Write(IOBuffer* buf, |
52 int buf_len, | 52 int buf_len, |
53 OldCompletionCallback* callback) OVERRIDE; | 53 OldCompletionCallback* callback) OVERRIDE; |
| 54 virtual int Write(IOBuffer* buf, |
| 55 int buf_len, |
| 56 const CompletionCallback& callback) OVERRIDE; |
54 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; | 57 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; |
55 virtual bool SetSendBufferSize(int32 size) OVERRIDE; | 58 virtual bool SetSendBufferSize(int32 size) OVERRIDE; |
56 | 59 |
57 private: | 60 private: |
58 AddressList addresses_; | 61 AddressList addresses_; |
59 BoundNetLog net_log_; | 62 BoundNetLog net_log_; |
60 Messenger messenger_; | 63 Messenger messenger_; |
61 ClientPacketizer packetizer_; | 64 ClientPacketizer packetizer_; |
62 | 65 |
63 DISALLOW_COPY_AND_ASSIGN(CurveCPClientSocket); | 66 DISALLOW_COPY_AND_ASSIGN(CurveCPClientSocket); |
64 }; | 67 }; |
65 | 68 |
66 } // namespace net | 69 } // namespace net |
67 | 70 |
68 #endif // NET_CURVECP_CURVECP_CLIENT_SOCKET_H_ | 71 #endif // NET_CURVECP_CURVECP_CLIENT_SOCKET_H_ |
OLD | NEW |