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

Side by Side Diff: net/socket/client_socket_factory.h

Issue 22794008: Remove deprecated functions that take StreamSockets instead of handles (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Android for reals Created 7 years, 4 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
« no previous file with comments | « no previous file | net/socket/client_socket_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_SOCKET_CLIENT_SOCKET_FACTORY_H_ 5 #ifndef NET_SOCKET_CLIENT_SOCKET_FACTORY_H_
6 #define NET_SOCKET_CLIENT_SOCKET_FACTORY_H_ 6 #define NET_SOCKET_CLIENT_SOCKET_FACTORY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 // It is allowed to pass in a |transport_socket| that is not obtained from a 46 // It is allowed to pass in a |transport_socket| that is not obtained from a
47 // socket pool. The caller could create a ClientSocketHandle directly and call 47 // socket pool. The caller could create a ClientSocketHandle directly and call
48 // set_socket() on it to set a valid StreamSocket instance. 48 // set_socket() on it to set a valid StreamSocket instance.
49 virtual SSLClientSocket* CreateSSLClientSocket( 49 virtual SSLClientSocket* CreateSSLClientSocket(
50 ClientSocketHandle* transport_socket, 50 ClientSocketHandle* transport_socket,
51 const HostPortPair& host_and_port, 51 const HostPortPair& host_and_port,
52 const SSLConfig& ssl_config, 52 const SSLConfig& ssl_config,
53 const SSLClientSocketContext& context) = 0; 53 const SSLClientSocketContext& context) = 0;
54 54
55 // Deprecated function (http://crbug.com/37810) that takes a StreamSocket.
56 virtual SSLClientSocket* CreateSSLClientSocket(
57 StreamSocket* transport_socket,
58 const HostPortPair& host_and_port,
59 const SSLConfig& ssl_config,
60 const SSLClientSocketContext& context);
61
62 // Clears cache used for SSL session resumption. 55 // Clears cache used for SSL session resumption.
63 virtual void ClearSSLSessionCache() = 0; 56 virtual void ClearSSLSessionCache() = 0;
64 57
65 // Returns the default ClientSocketFactory. 58 // Returns the default ClientSocketFactory.
66 static ClientSocketFactory* GetDefaultFactory(); 59 static ClientSocketFactory* GetDefaultFactory();
67 }; 60 };
68 61
69 } // namespace net 62 } // namespace net
70 63
71 #endif // NET_SOCKET_CLIENT_SOCKET_FACTORY_H_ 64 #endif // NET_SOCKET_CLIENT_SOCKET_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | net/socket/client_socket_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698