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

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

Issue 1376593007: SSL in EmbeddedTestServer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Typo fix. Created 5 years, 1 month 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
« no previous file with comments | « net/net.gypi ('k') | net/socket/ssl_server_socket_nss.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) 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_SERVER_SOCKET_H_ 5 #ifndef NET_SOCKET_SSL_SERVER_SOCKET_H_
6 #define NET_SOCKET_SSL_SERVER_SOCKET_H_ 6 #define NET_SOCKET_SSL_SERVER_SOCKET_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "net/base/completion_callback.h" 10 #include "net/base/completion_callback.h"
11 #include "net/base/net_export.h" 11 #include "net/base/net_export.h"
12 #include "net/socket/ssl_socket.h" 12 #include "net/socket/ssl_socket.h"
13 #include "net/socket/stream_socket.h" 13 #include "net/socket/stream_socket.h"
14 14
15 namespace crypto { 15 namespace crypto {
16 class RSAPrivateKey; 16 class RSAPrivateKey;
17 } // namespace crypto 17 } // namespace crypto
18 18
19 namespace net { 19 namespace net {
20 20
21 struct SSLConfig; 21 struct SSLServerConfig;
22 class X509Certificate; 22 class X509Certificate;
23 23
24 class SSLServerSocket : public SSLSocket { 24 class SSLServerSocket : public SSLSocket {
25 public: 25 public:
26 ~SSLServerSocket() override {} 26 ~SSLServerSocket() override {}
27 27
28 // Perform the SSL server handshake, and notify the supplied callback 28 // Perform the SSL server handshake, and notify the supplied callback
29 // if the process completes asynchronously. If Disconnect is called before 29 // if the process completes asynchronously. If Disconnect is called before
30 // completion then the callback will be silently, as for other StreamSocket 30 // completion then the callback will be silently, as for other StreamSocket
31 // calls. 31 // calls.
(...skipping 18 matching lines...) Expand all
50 // It takes a reference to |certificate|. 50 // It takes a reference to |certificate|.
51 // The |key| and |ssl_config| parameters are copied. |key| cannot be const 51 // The |key| and |ssl_config| parameters are copied. |key| cannot be const
52 // because the methods used to copy its contents are non-const. 52 // because the methods used to copy its contents are non-const.
53 // 53 //
54 // The caller starts the SSL server handshake by calling Handshake on the 54 // The caller starts the SSL server handshake by calling Handshake on the
55 // returned socket. 55 // returned socket.
56 NET_EXPORT scoped_ptr<SSLServerSocket> CreateSSLServerSocket( 56 NET_EXPORT scoped_ptr<SSLServerSocket> CreateSSLServerSocket(
57 scoped_ptr<StreamSocket> socket, 57 scoped_ptr<StreamSocket> socket,
58 X509Certificate* certificate, 58 X509Certificate* certificate,
59 crypto::RSAPrivateKey* key, 59 crypto::RSAPrivateKey* key,
60 const SSLConfig& ssl_config); 60 const SSLServerConfig& ssl_config);
61 61
62 } // namespace net 62 } // namespace net
63 63
64 #endif // NET_SOCKET_SSL_SERVER_SOCKET_H_ 64 #endif // NET_SOCKET_SSL_SERVER_SOCKET_H_
OLDNEW
« no previous file with comments | « net/net.gypi ('k') | net/socket/ssl_server_socket_nss.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698