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

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

Issue 6930014: Rename ClientSocket to StreamSocket. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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/socks_client_socket_unittest.cc ('k') | net/socket/ssl_client_socket_mac.h » ('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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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
11 #include "net/base/completion_callback.h" 11 #include "net/base/completion_callback.h"
12 #include "net/base/load_flags.h" 12 #include "net/base/load_flags.h"
13 #include "net/base/net_errors.h" 13 #include "net/base/net_errors.h"
14 #include "net/socket/client_socket.h" 14 #include "net/socket/stream_socket.h"
15 15
16 namespace net { 16 namespace net {
17 17
18 class SSLCertRequestInfo; 18 class SSLCertRequestInfo;
19 class SSLHostInfo; 19 class SSLHostInfo;
20 class SSLInfo; 20 class SSLInfo;
21 struct RRResponse; 21 struct RRResponse;
22 22
23 // DNSSECProvider is an interface to an object that can return DNSSEC data. 23 // DNSSECProvider is an interface to an object that can return DNSSEC data.
24 class DNSSECProvider { 24 class DNSSECProvider {
(...skipping 10 matching lines...) Expand all
35 private: 35 private:
36 ~DNSSECProvider() {} 36 ~DNSSECProvider() {}
37 }; 37 };
38 38
39 // A client socket that uses SSL as the transport layer. 39 // A client socket that uses SSL as the transport layer.
40 // 40 //
41 // NOTE: The SSL handshake occurs within the Connect method after a TCP 41 // NOTE: The SSL handshake occurs within the Connect method after a TCP
42 // connection is established. If a SSL error occurs during the handshake, 42 // connection is established. If a SSL error occurs during the handshake,
43 // Connect will fail. 43 // Connect will fail.
44 // 44 //
45 class SSLClientSocket : public ClientSocket { 45 class SSLClientSocket : public StreamSocket {
46 public: 46 public:
47 SSLClientSocket(); 47 SSLClientSocket();
48 48
49 // Next Protocol Negotiation (NPN) allows a TLS client and server to come to 49 // Next Protocol Negotiation (NPN) allows a TLS client and server to come to
50 // an agreement about the application level protocol to speak over a 50 // an agreement about the application level protocol to speak over a
51 // connection. 51 // connection.
52 enum NextProtoStatus { 52 enum NextProtoStatus {
53 // WARNING: These values are serialised to disk. Don't change them. 53 // WARNING: These values are serialised to disk. Don't change them.
54 54
55 kNextProtoUnsupported = 0, // The server doesn't support NPN. 55 kNextProtoUnsupported = 0, // The server doesn't support NPN.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 private: 103 private:
104 // True if NPN was responded to, independent of selecting SPDY or HTTP. 104 // True if NPN was responded to, independent of selecting SPDY or HTTP.
105 bool was_npn_negotiated_; 105 bool was_npn_negotiated_;
106 // True if NPN successfully negotiated SPDY. 106 // True if NPN successfully negotiated SPDY.
107 bool was_spdy_negotiated_; 107 bool was_spdy_negotiated_;
108 }; 108 };
109 109
110 } // namespace net 110 } // namespace net
111 111
112 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ 112 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « net/socket/socks_client_socket_unittest.cc ('k') | net/socket/ssl_client_socket_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698