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

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

Issue 10690122: Change SpdySession::GetSSLInfo to get the SSLInfo from the underlying socket (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: FIx curvercp Created 8 years, 5 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/ssl_client_socket_pool_unittest.cc ('k') | net/socket/ssl_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_SSL_CLIENT_SOCKET_WIN_H_ 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_WIN_H_
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_WIN_H_ 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_WIN_H_
7 7
8 #define SECURITY_WIN32 // Needs to be defined before including security.h 8 #define SECURITY_WIN32 // Needs to be defined before including security.h
9 9
10 #include <windows.h> 10 #include <windows.h>
(...skipping 27 matching lines...) Expand all
38 // authentication is requested, the host_and_port field of SSLCertRequestInfo 38 // authentication is requested, the host_and_port field of SSLCertRequestInfo
39 // will be populated with |host_and_port|. |ssl_config| specifies 39 // will be populated with |host_and_port|. |ssl_config| specifies
40 // the SSL settings. 40 // the SSL settings.
41 SSLClientSocketWin(ClientSocketHandle* transport_socket, 41 SSLClientSocketWin(ClientSocketHandle* transport_socket,
42 const HostPortPair& host_and_port, 42 const HostPortPair& host_and_port,
43 const SSLConfig& ssl_config, 43 const SSLConfig& ssl_config,
44 const SSLClientSocketContext& context); 44 const SSLClientSocketContext& context);
45 ~SSLClientSocketWin(); 45 ~SSLClientSocketWin();
46 46
47 // SSLClientSocket implementation. 47 // SSLClientSocket implementation.
48 virtual void GetSSLInfo(SSLInfo* ssl_info);
49 virtual void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info); 48 virtual void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info);
50 virtual int ExportKeyingMaterial(const base::StringPiece& label, 49 virtual int ExportKeyingMaterial(const base::StringPiece& label,
51 bool has_context, 50 bool has_context,
52 const base::StringPiece& context, 51 const base::StringPiece& context,
53 unsigned char* out, 52 unsigned char* out,
54 unsigned int outlen); 53 unsigned int outlen);
55 virtual NextProtoStatus GetNextProto(std::string* proto, 54 virtual NextProtoStatus GetNextProto(std::string* proto,
56 std::string* server_protos); 55 std::string* server_protos);
57 virtual ServerBoundCertService* GetServerBoundCertService() const OVERRIDE; 56 virtual ServerBoundCertService* GetServerBoundCertService() const OVERRIDE;
58 57
59 // StreamSocket implementation. 58 // StreamSocket implementation.
60 virtual int Connect(const CompletionCallback& callback) OVERRIDE; 59 virtual int Connect(const CompletionCallback& callback) OVERRIDE;
61 virtual void Disconnect() OVERRIDE; 60 virtual void Disconnect() OVERRIDE;
62 virtual bool IsConnected() const OVERRIDE; 61 virtual bool IsConnected() const OVERRIDE;
63 virtual bool IsConnectedAndIdle() const OVERRIDE; 62 virtual bool IsConnectedAndIdle() const OVERRIDE;
64 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; 63 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE;
65 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; 64 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE;
66 virtual const BoundNetLog& NetLog() const OVERRIDE{ return net_log_; } 65 virtual const BoundNetLog& NetLog() const OVERRIDE{ return net_log_; }
67 virtual void SetSubresourceSpeculation() OVERRIDE; 66 virtual void SetSubresourceSpeculation() OVERRIDE;
68 virtual void SetOmniboxSpeculation() OVERRIDE; 67 virtual void SetOmniboxSpeculation() OVERRIDE;
69 virtual bool WasEverUsed() const OVERRIDE; 68 virtual bool WasEverUsed() const OVERRIDE;
70 virtual bool UsingTCPFastOpen() const OVERRIDE; 69 virtual bool UsingTCPFastOpen() const OVERRIDE;
71 virtual int64 NumBytesRead() const OVERRIDE; 70 virtual int64 NumBytesRead() const OVERRIDE;
72 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; 71 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE;
72 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE;
73 73
74 // Socket implementation. 74 // Socket implementation.
75 virtual int Read(IOBuffer* buf, int buf_len, 75 virtual int Read(IOBuffer* buf, int buf_len,
76 const CompletionCallback& callback) OVERRIDE; 76 const CompletionCallback& callback) OVERRIDE;
77 virtual int Write(IOBuffer* buf, int buf_len, 77 virtual int Write(IOBuffer* buf, int buf_len,
78 const CompletionCallback& callback) OVERRIDE; 78 const CompletionCallback& callback) OVERRIDE;
79 79
80 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; 80 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE;
81 virtual bool SetSendBufferSize(int32 size) OVERRIDE; 81 virtual bool SetSendBufferSize(int32 size) OVERRIDE;
82 82
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 201
202 // True when the decrypter needs more data in order to decrypt. 202 // True when the decrypter needs more data in order to decrypt.
203 bool need_more_data_; 203 bool need_more_data_;
204 204
205 BoundNetLog net_log_; 205 BoundNetLog net_log_;
206 }; 206 };
207 207
208 } // namespace net 208 } // namespace net
209 209
210 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_WIN_H_ 210 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_WIN_H_
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_pool_unittest.cc ('k') | net/socket/ssl_client_socket_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698