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

Side by Side Diff: net/curvecp/curvecp_client_socket.cc

Issue 9958028: Add a new GetNegotiatedProtocol method to StreamSocket and implement in all subclasses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 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 | « net/curvecp/curvecp_client_socket.h ('k') | net/http/http_proxy_client_socket.h » ('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) 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/base/sys_addrinfo.h" 7 #include "net/base/sys_addrinfo.h"
8 #include "net/curvecp/curvecp_client_socket.h" 8 #include "net/curvecp/curvecp_client_socket.h"
9 #include "net/curvecp/messenger.h" 9 #include "net/curvecp/messenger.h"
10 10
11 namespace net { 11 namespace net {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 } 89 }
90 90
91 int64 CurveCPClientSocket::NumBytesRead() const { 91 int64 CurveCPClientSocket::NumBytesRead() const {
92 return -1; 92 return -1;
93 } 93 }
94 94
95 base::TimeDelta CurveCPClientSocket::GetConnectTimeMicros() const { 95 base::TimeDelta CurveCPClientSocket::GetConnectTimeMicros() const {
96 return base::TimeDelta::FromMicroseconds(-1); 96 return base::TimeDelta::FromMicroseconds(-1);
97 } 97 }
98 98
99 NextProto CurveCPClientSocket::GetNegotiatedProtocol() const {
100 return kProtoUnknown;
101 }
102
99 int CurveCPClientSocket::Read(IOBuffer* buf, 103 int CurveCPClientSocket::Read(IOBuffer* buf,
100 int buf_len, 104 int buf_len,
101 const CompletionCallback& callback) { 105 const CompletionCallback& callback) {
102 return messenger_.Read(buf, buf_len, callback); 106 return messenger_.Read(buf, buf_len, callback);
103 } 107 }
104 108
105 int CurveCPClientSocket::Write(IOBuffer* buf, 109 int CurveCPClientSocket::Write(IOBuffer* buf,
106 int buf_len, 110 int buf_len,
107 const CompletionCallback& callback) { 111 const CompletionCallback& callback) {
108 return messenger_.Write(buf, buf_len, callback); 112 return messenger_.Write(buf, buf_len, callback);
109 } 113 }
110 114
111 bool CurveCPClientSocket::SetReceiveBufferSize(int32 size) { 115 bool CurveCPClientSocket::SetReceiveBufferSize(int32 size) {
112 return true; 116 return true;
113 } 117 }
114 118
115 bool CurveCPClientSocket::SetSendBufferSize(int32 size) { 119 bool CurveCPClientSocket::SetSendBufferSize(int32 size) {
116 return true; 120 return true;
117 } 121 }
118 122
119 } // namespace net 123 } // namespace net
OLDNEW
« no previous file with comments | « net/curvecp/curvecp_client_socket.h ('k') | net/http/http_proxy_client_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698