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

Side by Side Diff: net/socket/tcp_client_socket_libevent.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/stream_socket.h ('k') | net/socket/tcp_client_socket_libevent.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_TCP_CLIENT_SOCKET_LIBEVENT_H_ 5 #ifndef NET_SOCKET_TCP_CLIENT_SOCKET_LIBEVENT_H_
6 #define NET_SOCKET_TCP_CLIENT_SOCKET_LIBEVENT_H_ 6 #define NET_SOCKET_TCP_CLIENT_SOCKET_LIBEVENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 virtual bool IsConnectedAndIdle() const OVERRIDE; 49 virtual bool IsConnectedAndIdle() const OVERRIDE;
50 virtual int GetPeerAddress(AddressList* address) const OVERRIDE; 50 virtual int GetPeerAddress(AddressList* address) const OVERRIDE;
51 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; 51 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE;
52 virtual const BoundNetLog& NetLog() const OVERRIDE; 52 virtual const BoundNetLog& NetLog() const OVERRIDE;
53 virtual void SetSubresourceSpeculation() OVERRIDE; 53 virtual void SetSubresourceSpeculation() OVERRIDE;
54 virtual void SetOmniboxSpeculation() OVERRIDE; 54 virtual void SetOmniboxSpeculation() OVERRIDE;
55 virtual bool WasEverUsed() const OVERRIDE; 55 virtual bool WasEverUsed() const OVERRIDE;
56 virtual bool UsingTCPFastOpen() const OVERRIDE; 56 virtual bool UsingTCPFastOpen() const OVERRIDE;
57 virtual int64 NumBytesRead() const OVERRIDE; 57 virtual int64 NumBytesRead() const OVERRIDE;
58 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; 58 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE;
59 virtual NextProto GetNegotiatedProtocol() const OVERRIDE;
59 60
60 // Socket implementation. 61 // Socket implementation.
61 // Multiple outstanding requests are not supported. 62 // Multiple outstanding requests are not supported.
62 // Full duplex mode (reading and writing at the same time) is supported 63 // Full duplex mode (reading and writing at the same time) is supported
63 virtual int Read(IOBuffer* buf, 64 virtual int Read(IOBuffer* buf,
64 int buf_len, 65 int buf_len,
65 const CompletionCallback& callback) OVERRIDE; 66 const CompletionCallback& callback) OVERRIDE;
66 virtual int Write(IOBuffer* buf, 67 virtual int Write(IOBuffer* buf,
67 int buf_len, 68 int buf_len,
68 const CompletionCallback& callback) OVERRIDE; 69 const CompletionCallback& callback) OVERRIDE;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 base::TimeTicks connect_start_time_; 204 base::TimeTicks connect_start_time_;
204 base::TimeDelta connect_time_micros_; 205 base::TimeDelta connect_time_micros_;
205 int64 num_bytes_read_; 206 int64 num_bytes_read_;
206 207
207 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketLibevent); 208 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketLibevent);
208 }; 209 };
209 210
210 } // namespace net 211 } // namespace net
211 212
212 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_LIBEVENT_H_ 213 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_LIBEVENT_H_
OLDNEW
« no previous file with comments | « net/socket/stream_socket.h ('k') | net/socket/tcp_client_socket_libevent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698