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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef JINGLE_NOTIFIER_BASE_RESOLVING_CLIENT_SOCKET_FACTORY_H_
6 #define JINGLE_NOTIFIER_BASE_RESOLVING_CLIENT_SOCKET_FACTORY_H_
7
8
9 namespace net {
10 class ClientSocket;
11 class ClientSocketHandle;
12 class HostPortPair;
13 class NetLog;
14 class SSLClientSocket;
15 }
16
17 // TODO(sanjeevr): Move this to net/
18
19 namespace notifier {
20
21 // Interface for a ClientSocketFactory that creates ClientSockets that can
22 // resolve host names and tunnel through proxies.
23 class ResolvingClientSocketFactory {
24 public:
25 virtual ~ResolvingClientSocketFactory() { }
26 // Method to create a transport socket using a HostPortPair.
27 virtual net::ClientSocket* CreateTransportClientSocket(
28 const net::HostPortPair& host_and_port, net::NetLog* net_log) = 0;
29
30 virtual net::SSLClientSocket* CreateSSLClientSocket(
31 net::ClientSocketHandle* transport_socket,
32 const net::HostPortPair& host_and_port) = 0;
33 };
34
35 } // namespace notifier
36
37 #endif // JINGLE_NOTIFIER_BASE_RESOLVING_CLIENT_SOCKET_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698