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

Unified Diff: jingle/notifier/base/resolving_client_socket_factory.h

Issue 6833031: Changed the jingle network code in ChromeAsyncSocket to use the client socket pool. This also all... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Lint fixes 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 side-by-side diff with in-line comments
Download patch
Index: jingle/notifier/base/resolving_client_socket_factory.h
===================================================================
--- jingle/notifier/base/resolving_client_socket_factory.h (revision 0)
+++ jingle/notifier/base/resolving_client_socket_factory.h (revision 0)
@@ -0,0 +1,37 @@
+// Copyright (c) 2011 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 JINGLE_NOTIFIER_BASE_RESOLVING_CLIENT_SOCKET_FACTORY_H_
+#define JINGLE_NOTIFIER_BASE_RESOLVING_CLIENT_SOCKET_FACTORY_H_
+
+
+namespace net {
+class ClientSocket;
+class ClientSocketHandle;
+class HostPortPair;
+class NetLog;
+class SSLClientSocket;
+}
+
+// TODO(sanjeevr): Move this to net/
+
+namespace notifier {
+
+// Interface for a ClientSocketFactory that creates ClientSockets that can
+// resolve host names and tunnel through proxies.
+class ResolvingClientSocketFactory {
+ public:
+ virtual ~ResolvingClientSocketFactory() { }
+ // Method to create a transport socket using a HostPortPair.
+ virtual net::ClientSocket* CreateTransportClientSocket(
+ const net::HostPortPair& host_and_port, net::NetLog* net_log) = 0;
+
+ virtual net::SSLClientSocket* CreateSSLClientSocket(
+ net::ClientSocketHandle* transport_socket,
+ const net::HostPortPair& host_and_port) = 0;
+};
+
+} // namespace notifier
+
+#endif // JINGLE_NOTIFIER_BASE_RESOLVING_CLIENT_SOCKET_FACTORY_H_
Property changes on: jingle\notifier\base\resolving_client_socket_factory.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698