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

Unified Diff: net/socket/ssl_client_socket_nss_factory.h

Issue 573041: Add the ssl_client_socket_nss_factory.h header and declare... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Sync with the current trunk. Created 10 years, 10 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/client_socket_factory.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/ssl_client_socket_nss_factory.h
===================================================================
--- net/socket/ssl_client_socket_nss_factory.h (revision 37929)
+++ net/socket/ssl_client_socket_nss_factory.h (working copy)
@@ -1,53 +1,20 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 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_CLIENT_SOCKET_FACTORY_H_
-#define NET_SOCKET_CLIENT_SOCKET_FACTORY_H_
+#ifndef NET_SOCKET_SSL_CLIENT_SOCKET_NSS_FACTORY_H_
+#define NET_SOCKET_SSL_CLIENT_SOCKET_NSS_FACTORY_H_
-#include <string>
+#include "net/socket/client_socket_factory.h"
namespace net {
-class AddressList;
-class ClientSocket;
-class SSLClientSocket;
-struct SSLConfig;
-
-// Callback function to create new SSLClientSocket objects.
-typedef SSLClientSocket* (*SSLClientSocketFactory)(
- ClientSocket* transport_socket,
- const std::string& hostname,
- const SSLConfig& ssl_config);
-
// Creates SSLClientSocketNSS objects.
SSLClientSocket* SSLClientSocketNSSFactory(
ClientSocket* transport_socket,
const std::string& hostname,
const SSLConfig& ssl_config);
-// An interface used to instantiate ClientSocket objects. Used to facilitate
-// testing code with mock socket implementations.
-class ClientSocketFactory {
- public:
- virtual ~ClientSocketFactory() {}
-
- virtual ClientSocket* CreateTCPClientSocket(
- const AddressList& addresses) = 0;
-
- virtual SSLClientSocket* CreateSSLClientSocket(
- ClientSocket* transport_socket,
- const std::string& hostname,
- const SSLConfig& ssl_config) = 0;
-
- // Returns the default ClientSocketFactory.
- static ClientSocketFactory* GetDefaultFactory();
-
- // Instructs the default ClientSocketFactory to use |factory| to create
- // SSLClientSocket objects.
- static void SetSSLClientSocketFactory(SSLClientSocketFactory factory);
-};
-
} // namespace net
-#endif // NET_SOCKET_CLIENT_SOCKET_FACTORY_H_
+#endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_FACTORY_H_
« no previous file with comments | « net/socket/client_socket_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698