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

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

Issue 9959033: Move NextProto enum to a new file net/socket/next_proto.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Unwrap short lines. 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_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 const unsigned char* in, unsigned int inlen); 56 const unsigned char* in, unsigned int inlen);
57 57
58 // SSLClientSocket implementation. 58 // SSLClientSocket implementation.
59 virtual void GetSSLInfo(SSLInfo* ssl_info); 59 virtual void GetSSLInfo(SSLInfo* ssl_info);
60 virtual void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info); 60 virtual void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info);
61 virtual int ExportKeyingMaterial(const base::StringPiece& label, 61 virtual int ExportKeyingMaterial(const base::StringPiece& label,
62 bool has_context, 62 bool has_context,
63 const base::StringPiece& context, 63 const base::StringPiece& context,
64 unsigned char* out, 64 unsigned char* out,
65 unsigned int outlen); 65 unsigned int outlen);
66 virtual NextProtoStatus GetNextProto(std::string* proto, 66 virtual SSLClientSocket::NextProtoStatus GetNextProto(std::string* proto,
67 std::string* server_protos); 67 std::string* server_protos);
68 virtual ServerBoundCertService* GetServerBoundCertService() const; 68 virtual ServerBoundCertService* GetServerBoundCertService() const;
69 69
70 // StreamSocket implementation. 70 // StreamSocket implementation.
71 virtual int Connect(const CompletionCallback& callback); 71 virtual int Connect(const CompletionCallback& callback);
72 virtual void Disconnect(); 72 virtual void Disconnect();
73 virtual bool IsConnected() const; 73 virtual bool IsConnected() const;
74 virtual bool IsConnectedAndIdle() const; 74 virtual bool IsConnectedAndIdle() const;
75 virtual int GetPeerAddress(AddressList* address) const; 75 virtual int GetPeerAddress(AddressList* address) const;
76 virtual int GetLocalAddress(IPEndPoint* address) const; 76 virtual int GetLocalAddress(IPEndPoint* address) const;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // Used for session cache diagnostics. 164 // Used for session cache diagnostics.
165 bool trying_cached_session_; 165 bool trying_cached_session_;
166 166
167 enum State { 167 enum State {
168 STATE_NONE, 168 STATE_NONE,
169 STATE_HANDSHAKE, 169 STATE_HANDSHAKE,
170 STATE_VERIFY_CERT, 170 STATE_VERIFY_CERT,
171 STATE_VERIFY_CERT_COMPLETE, 171 STATE_VERIFY_CERT_COMPLETE,
172 }; 172 };
173 State next_handshake_state_; 173 State next_handshake_state_;
174 NextProtoStatus npn_status_; 174 SSLClientSocket::NextProtoStatus npn_status_;
175 std::string npn_proto_; 175 std::string npn_proto_;
176 std::string server_protos_; 176 std::string server_protos_;
177 BoundNetLog net_log_; 177 BoundNetLog net_log_;
178 }; 178 };
179 179
180 } // namespace net 180 } // namespace net
181 181
182 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ 182 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698