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

Side by Side Diff: net/socket/socks_client_socket.h

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/socket/socks5_client_socket.cc ('k') | net/socket/socks_client_socket.cc » ('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 #ifndef NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ 5 #ifndef NET_SOCKET_SOCKS_CLIENT_SOCKET_H_
6 #define NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ 6 #define NET_SOCKET_SOCKS_CLIENT_SOCKET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 virtual void Disconnect() OVERRIDE; 52 virtual void Disconnect() OVERRIDE;
53 virtual bool IsConnected() const OVERRIDE; 53 virtual bool IsConnected() const OVERRIDE;
54 virtual bool IsConnectedAndIdle() const OVERRIDE; 54 virtual bool IsConnectedAndIdle() const OVERRIDE;
55 virtual const BoundNetLog& NetLog() const OVERRIDE; 55 virtual const BoundNetLog& NetLog() const OVERRIDE;
56 virtual void SetSubresourceSpeculation() OVERRIDE; 56 virtual void SetSubresourceSpeculation() OVERRIDE;
57 virtual void SetOmniboxSpeculation() OVERRIDE; 57 virtual void SetOmniboxSpeculation() OVERRIDE;
58 virtual bool WasEverUsed() const OVERRIDE; 58 virtual bool WasEverUsed() const OVERRIDE;
59 virtual bool UsingTCPFastOpen() const OVERRIDE; 59 virtual bool UsingTCPFastOpen() const OVERRIDE;
60 virtual int64 NumBytesRead() const OVERRIDE; 60 virtual int64 NumBytesRead() const OVERRIDE;
61 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; 61 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE;
62 virtual NextProto GetNegotiatedProtocol() const OVERRIDE;
62 63
63 // Socket implementation. 64 // Socket implementation.
64 virtual int Read(IOBuffer* buf, 65 virtual int Read(IOBuffer* buf,
65 int buf_len, 66 int buf_len,
66 const CompletionCallback& callback) OVERRIDE; 67 const CompletionCallback& callback) OVERRIDE;
67 virtual int Write(IOBuffer* buf, 68 virtual int Write(IOBuffer* buf,
68 int buf_len, 69 int buf_len,
69 const CompletionCallback& callback) OVERRIDE; 70 const CompletionCallback& callback) OVERRIDE;
70 71
71 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; 72 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 HostResolver::RequestInfo host_request_info_; 134 HostResolver::RequestInfo host_request_info_;
134 135
135 BoundNetLog net_log_; 136 BoundNetLog net_log_;
136 137
137 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocket); 138 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocket);
138 }; 139 };
139 140
140 } // namespace net 141 } // namespace net
141 142
142 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ 143 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « net/socket/socks5_client_socket.cc ('k') | net/socket/socks_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698