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

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

Issue 10491007: fixed issue 128383 - replace GetPeerAddress(AddressList* address) with GetPeerAddress(IPEndPoint* a… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix according to review Created 8 years, 6 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/tcp_client_socket_libevent.cc ('k') | net/socket/tcp_client_socket_win.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) 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_SOCKET_TCP_CLIENT_SOCKET_WIN_H_ 5 #ifndef NET_SOCKET_TCP_CLIENT_SOCKET_WIN_H_
6 #define NET_SOCKET_TCP_CLIENT_SOCKET_WIN_H_ 6 #define NET_SOCKET_TCP_CLIENT_SOCKET_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <winsock2.h> 9 #include <winsock2.h>
10 10
(...skipping 28 matching lines...) Expand all
39 int AdoptSocket(SOCKET socket); 39 int AdoptSocket(SOCKET socket);
40 40
41 // Binds the socket to a local IP address and port. 41 // Binds the socket to a local IP address and port.
42 int Bind(const IPEndPoint& address); 42 int Bind(const IPEndPoint& address);
43 43
44 // StreamSocket implementation. 44 // StreamSocket implementation.
45 virtual int Connect(const CompletionCallback& callback); 45 virtual int Connect(const CompletionCallback& callback);
46 virtual void Disconnect(); 46 virtual void Disconnect();
47 virtual bool IsConnected() const; 47 virtual bool IsConnected() const;
48 virtual bool IsConnectedAndIdle() const; 48 virtual bool IsConnectedAndIdle() const;
49 virtual int GetPeerAddress(AddressList* address) const; 49 virtual int GetPeerAddress(IPEndPoint* address) const;
50 virtual int GetLocalAddress(IPEndPoint* address) const; 50 virtual int GetLocalAddress(IPEndPoint* address) const;
51 virtual const BoundNetLog& NetLog() const { return net_log_; } 51 virtual const BoundNetLog& NetLog() const { return net_log_; }
52 virtual void SetSubresourceSpeculation(); 52 virtual void SetSubresourceSpeculation();
53 virtual void SetOmniboxSpeculation(); 53 virtual void SetOmniboxSpeculation();
54 virtual bool WasEverUsed() const; 54 virtual bool WasEverUsed() const;
55 virtual bool UsingTCPFastOpen() const; 55 virtual bool UsingTCPFastOpen() const;
56 virtual int64 NumBytesRead() const; 56 virtual int64 NumBytesRead() const;
57 virtual base::TimeDelta GetConnectTimeMicros() const; 57 virtual base::TimeDelta GetConnectTimeMicros() const;
58 virtual NextProto GetNegotiatedProtocol() const OVERRIDE; 58 virtual NextProto GetNegotiatedProtocol() const OVERRIDE;
59 59
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 base::TimeTicks connect_start_time_; 152 base::TimeTicks connect_start_time_;
153 base::TimeDelta connect_time_micros_; 153 base::TimeDelta connect_time_micros_;
154 int64 num_bytes_read_; 154 int64 num_bytes_read_;
155 155
156 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketWin); 156 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketWin);
157 }; 157 };
158 158
159 } // namespace net 159 } // namespace net
160 160
161 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_WIN_H_ 161 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_WIN_H_
OLDNEW
« no previous file with comments | « net/socket/tcp_client_socket_libevent.cc ('k') | net/socket/tcp_client_socket_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698