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

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

Issue 7529043: Rename NET_API to NET_EXPORT, and rename NET_TEST to NET_EXPORT_PRIVATE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_H_ 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_H_
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_H_ 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 DnsCertProvenanceChecker* dns_cert_checker; 72 DnsCertProvenanceChecker* dns_cert_checker;
73 SSLHostInfoFactory* ssl_host_info_factory; 73 SSLHostInfoFactory* ssl_host_info_factory;
74 }; 74 };
75 75
76 // A client socket that uses SSL as the transport layer. 76 // A client socket that uses SSL as the transport layer.
77 // 77 //
78 // NOTE: The SSL handshake occurs within the Connect method after a TCP 78 // NOTE: The SSL handshake occurs within the Connect method after a TCP
79 // connection is established. If a SSL error occurs during the handshake, 79 // connection is established. If a SSL error occurs during the handshake,
80 // Connect will fail. 80 // Connect will fail.
81 // 81 //
82 class NET_API SSLClientSocket : public StreamSocket { 82 class NET_EXPORT SSLClientSocket : public StreamSocket {
83 public: 83 public:
84 SSLClientSocket(); 84 SSLClientSocket();
85 85
86 // Next Protocol Negotiation (NPN) allows a TLS client and server to come to 86 // Next Protocol Negotiation (NPN) allows a TLS client and server to come to
87 // an agreement about the application level protocol to speak over a 87 // an agreement about the application level protocol to speak over a
88 // connection. 88 // connection.
89 enum NextProtoStatus { 89 enum NextProtoStatus {
90 // WARNING: These values are serialised to disk. Don't change them. 90 // WARNING: These values are serialised to disk. Don't change them.
91 91
92 kNextProtoUnsupported = 0, // The server doesn't support NPN. 92 kNextProtoUnsupported = 0, // The server doesn't support NPN.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 private: 148 private:
149 // True if NPN was responded to, independent of selecting SPDY or HTTP. 149 // True if NPN was responded to, independent of selecting SPDY or HTTP.
150 bool was_npn_negotiated_; 150 bool was_npn_negotiated_;
151 // True if NPN successfully negotiated SPDY. 151 // True if NPN successfully negotiated SPDY.
152 bool was_spdy_negotiated_; 152 bool was_spdy_negotiated_;
153 }; 153 };
154 154
155 } // namespace net 155 } // namespace net
156 156
157 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ 157 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698