OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "net/base/ip_endpoint.h" | 5 #include "net/base/ip_endpoint.h" |
6 #include "net/base/net_errors.h" | 6 #include "net/base/net_errors.h" |
7 #include "net/curvecp/curvecp_client_socket.h" | 7 #include "net/curvecp/curvecp_client_socket.h" |
8 #include "net/curvecp/messenger.h" | 8 #include "net/curvecp/messenger.h" |
9 | 9 |
10 namespace net { | 10 namespace net { |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 } | 78 } |
79 | 79 |
80 int64 CurveCPClientSocket::NumBytesRead() const { | 80 int64 CurveCPClientSocket::NumBytesRead() const { |
81 return -1; | 81 return -1; |
82 } | 82 } |
83 | 83 |
84 base::TimeDelta CurveCPClientSocket::GetConnectTimeMicros() const { | 84 base::TimeDelta CurveCPClientSocket::GetConnectTimeMicros() const { |
85 return base::TimeDelta::FromMicroseconds(-1); | 85 return base::TimeDelta::FromMicroseconds(-1); |
86 } | 86 } |
87 | 87 |
| 88 bool CurveCPClientSocket::WasNpnNegotiated() const { |
| 89 return false; |
| 90 } |
| 91 |
88 NextProto CurveCPClientSocket::GetNegotiatedProtocol() const { | 92 NextProto CurveCPClientSocket::GetNegotiatedProtocol() const { |
89 return kProtoUnknown; | 93 return kProtoUnknown; |
90 } | 94 } |
91 | 95 |
| 96 bool CurveCPClientSocket::GetSSLInfo(SSLInfo* ssl_info) { |
| 97 return false; |
| 98 } |
| 99 |
92 int CurveCPClientSocket::Read(IOBuffer* buf, | 100 int CurveCPClientSocket::Read(IOBuffer* buf, |
93 int buf_len, | 101 int buf_len, |
94 const CompletionCallback& callback) { | 102 const CompletionCallback& callback) { |
95 return messenger_.Read(buf, buf_len, callback); | 103 return messenger_.Read(buf, buf_len, callback); |
96 } | 104 } |
97 | 105 |
98 int CurveCPClientSocket::Write(IOBuffer* buf, | 106 int CurveCPClientSocket::Write(IOBuffer* buf, |
99 int buf_len, | 107 int buf_len, |
100 const CompletionCallback& callback) { | 108 const CompletionCallback& callback) { |
101 return messenger_.Write(buf, buf_len, callback); | 109 return messenger_.Write(buf, buf_len, callback); |
102 } | 110 } |
103 | 111 |
104 bool CurveCPClientSocket::SetReceiveBufferSize(int32 size) { | 112 bool CurveCPClientSocket::SetReceiveBufferSize(int32 size) { |
105 return true; | 113 return true; |
106 } | 114 } |
107 | 115 |
108 bool CurveCPClientSocket::SetSendBufferSize(int32 size) { | 116 bool CurveCPClientSocket::SetSendBufferSize(int32 size) { |
109 return true; | 117 return true; |
110 } | 118 } |
111 | 119 |
112 } // namespace net | 120 } // namespace net |
OLD | NEW |