blob: 5be8bc88c2d7c0323bd5c6de51f4ecf0a54c542c [file] [log] [blame]
// 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.
namespace net {
class ClientSocketHandle;
class HostPortPair;
class SSLClientSocket;
class StreamSocket;
} // namespace net
// TODO(sanjeevr): Move this to net/
namespace jingle_glue {
// Interface for a ClientSocketFactory that creates ClientSockets that can
// resolve host names and tunnel through proxies.
class ResolvingClientSocketFactory {
virtual ~ResolvingClientSocketFactory() { }
// Method to create a transport socket using a HostPortPair.
virtual net::StreamSocket* CreateTransportClientSocket(
const net::HostPortPair& host_and_port) = 0;
virtual net::SSLClientSocket* CreateSSLClientSocket(
net::ClientSocketHandle* transport_socket,
const net::HostPortPair& host_and_port) = 0;
} // namespace jingle_glue