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

Side by Side Diff: net/spdy/spdy_proxy_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
OLDNEW
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 #ifndef NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ 5 #ifndef NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_
6 #define NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ 6 #define NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <list> 10 #include <list>
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 virtual void Disconnect() OVERRIDE; 68 virtual void Disconnect() OVERRIDE;
69 virtual bool IsConnected() const OVERRIDE; 69 virtual bool IsConnected() const OVERRIDE;
70 virtual bool IsConnectedAndIdle() const OVERRIDE; 70 virtual bool IsConnectedAndIdle() const OVERRIDE;
71 virtual const BoundNetLog& NetLog() const OVERRIDE; 71 virtual const BoundNetLog& NetLog() const OVERRIDE;
72 virtual void SetSubresourceSpeculation() OVERRIDE; 72 virtual void SetSubresourceSpeculation() OVERRIDE;
73 virtual void SetOmniboxSpeculation() OVERRIDE; 73 virtual void SetOmniboxSpeculation() OVERRIDE;
74 virtual bool WasEverUsed() const OVERRIDE; 74 virtual bool WasEverUsed() const OVERRIDE;
75 virtual bool UsingTCPFastOpen() const OVERRIDE; 75 virtual bool UsingTCPFastOpen() const OVERRIDE;
76 virtual int64 NumBytesRead() const OVERRIDE; 76 virtual int64 NumBytesRead() const OVERRIDE;
77 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; 77 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE;
78 virtual NextProto GetNegotiatedProtocol() const OVERRIDE;
78 79
79 // Socket implementation. 80 // Socket implementation.
80 virtual int Read(IOBuffer* buf, 81 virtual int Read(IOBuffer* buf,
81 int buf_len, 82 int buf_len,
82 const CompletionCallback& callback) OVERRIDE; 83 const CompletionCallback& callback) OVERRIDE;
83 virtual int Write(IOBuffer* buf, 84 virtual int Write(IOBuffer* buf,
84 int buf_len, 85 int buf_len,
85 const CompletionCallback& callback) OVERRIDE; 86 const CompletionCallback& callback) OVERRIDE;
86 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; 87 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE;
87 virtual bool SetSendBufferSize(int32 size) OVERRIDE; 88 virtual bool SetSendBufferSize(int32 size) OVERRIDE;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 base::WeakPtrFactory<SpdyProxyClientSocket> weak_factory_; 165 base::WeakPtrFactory<SpdyProxyClientSocket> weak_factory_;
165 166
166 const BoundNetLog net_log_; 167 const BoundNetLog net_log_;
167 168
168 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); 169 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket);
169 }; 170 };
170 171
171 } // namespace net 172 } // namespace net
172 173
173 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ 174 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « net/socket/transport_client_socket_pool_unittest.cc ('k') | net/spdy/spdy_proxy_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698