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

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

Issue 6805019: Move crypto files out of base, to a top level directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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) 2010 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_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 "net/base/completion_callback.h" 9 #include "net/base/completion_callback.h"
10 #include "net/socket/socket.h" 10 #include "net/socket/socket.h"
11 11
12 namespace base { 12 namespace crypto {
13 class RSAPrivateKey; 13 class RSAPrivateKey;
14 } // namespace base 14 } // namespace base
15 15
16 namespace net { 16 namespace net {
17 17
18 class IOBuffer; 18 class IOBuffer;
19 struct SSLConfig; 19 struct SSLConfig;
20 class X509Certificate; 20 class X509Certificate;
21 21
22 // SSLServerSocket takes an already connected socket and performs SSL on top of 22 // SSLServerSocket takes an already connected socket and performs SSL on top of
(...skipping 15 matching lines...) Expand all
38 }; 38 };
39 39
40 // Creates an SSL server socket using an already connected socket. A certificate 40 // Creates an SSL server socket using an already connected socket. A certificate
41 // and private key needs to be provided. 41 // and private key needs to be provided.
42 // 42 //
43 // This created server socket will take ownership of |socket|. However |key| 43 // This created server socket will take ownership of |socket|. However |key|
44 // is copied. 44 // is copied.
45 // TODO(hclam): Defines ServerSocketFactory to create SSLServerSocket. This will 45 // TODO(hclam): Defines ServerSocketFactory to create SSLServerSocket. This will
46 // make mocking easier. 46 // make mocking easier.
47 SSLServerSocket* CreateSSLServerSocket( 47 SSLServerSocket* CreateSSLServerSocket(
48 Socket* socket, X509Certificate* certificate, base::RSAPrivateKey* key, 48 Socket* socket, X509Certificate* certificate, crypto::RSAPrivateKey* key,
49 const SSLConfig& ssl_config); 49 const SSLConfig& ssl_config);
50 50
51 } // namespace net 51 } // namespace net
52 52
53 #endif // NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_ 53 #endif // NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698