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

Unified Diff: net/socket/ssl_server_socket.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/socket/ssl_client_socket_unittest.cc ('k') | net/socket/ssl_server_socket_nss.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/ssl_server_socket.h
diff --git a/net/socket/ssl_server_socket.h b/net/socket/ssl_server_socket.h
deleted file mode 100644
index 88f7f94143956764cb67b32dc2e7667136b38b9f..0000000000000000000000000000000000000000
--- a/net/socket/ssl_server_socket.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef NET_SOCKET_SSL_SERVER_SOCKET_H_
-#define NET_SOCKET_SSL_SERVER_SOCKET_H_
-
-#include "base/basictypes.h"
-#include "base/memory/scoped_ptr.h"
-#include "net/base/completion_callback.h"
-#include "net/base/net_export.h"
-#include "net/socket/ssl_socket.h"
-#include "net/socket/stream_socket.h"
-
-namespace crypto {
-class RSAPrivateKey;
-} // namespace crypto
-
-namespace net {
-
-struct SSLConfig;
-class X509Certificate;
-
-class SSLServerSocket : public SSLSocket {
- public:
- ~SSLServerSocket() override {}
-
- // Perform the SSL server handshake, and notify the supplied callback
- // if the process completes asynchronously. If Disconnect is called before
- // completion then the callback will be silently, as for other StreamSocket
- // calls.
- virtual int Handshake(const CompletionCallback& callback) = 0;
-};
-
-// Configures the underlying SSL library for the use of SSL server sockets.
-//
-// Due to the requirements of the underlying libraries, this should be called
-// early in process initialization, before any SSL socket, client or server,
-// has been used.
-//
-// Note: If a process does not use SSL server sockets, this call may be
-// omitted.
-NET_EXPORT void EnableSSLServerSockets();
-
-// Creates an SSL server socket over an already-connected transport socket.
-// The caller must provide the server certificate and private key to use.
-//
-// The returned SSLServerSocket takes ownership of |socket|. Stubbed versions
-// of CreateSSLServerSocket will delete |socket| and return NULL.
-// It takes a reference to |certificate|.
-// The |key| and |ssl_config| parameters are copied. |key| cannot be const
-// because the methods used to copy its contents are non-const.
-//
-// The caller starts the SSL server handshake by calling Handshake on the
-// returned socket.
-NET_EXPORT scoped_ptr<SSLServerSocket> CreateSSLServerSocket(
- scoped_ptr<StreamSocket> socket,
- X509Certificate* certificate,
- crypto::RSAPrivateKey* key,
- const SSLConfig& ssl_config);
-
-} // namespace net
-
-#endif // NET_SOCKET_SSL_SERVER_SOCKET_H_
« no previous file with comments | « net/socket/ssl_client_socket_unittest.cc ('k') | net/socket/ssl_server_socket_nss.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698