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

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

Issue 364943002: Makes waiting SSLConnectJobs use the message loops to resume their connection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved documentation and made some methods private. Created 6 years, 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SSL_CLIENT_SOCKET_H_ 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_H_
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_H_ 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // 92 //
93 // The cache key consists of a host and port concatenated with a session 93 // The cache key consists of a host and port concatenated with a session
94 // cache shard. 94 // cache shard.
95 virtual bool InSessionCache() const = 0; 95 virtual bool InSessionCache() const = 0;
96 96
97 // Tells the session cache to monitor this socket's session and inform 97 // Tells the session cache to monitor this socket's session and inform
98 // its SSLConnectJobMessenger upon the session's connection's completion. 98 // its SSLConnectJobMessenger upon the session's connection's completion.
99 virtual void WatchSessionForCompletion(const base::Closure& callback) = 0; 99 virtual void WatchSessionForCompletion(const base::Closure& callback) = 0;
100 100
101 // Sets the callback to be used if the socket's connection should fail. 101 // Sets the callback to be used if the socket's connection should fail.
102 //
103 // This callback should be run regardless of whether or not this socket
Ryan Sleevi 2014/07/11 01:25:59 s/should be/will be/ Reworded though: // NOTE: T
mshelley 2014/07/14 20:30:06 Done.
104 // will still be valid at its runtime.
102 virtual void SetSocketFailureCallback(const base::Closure& callback) = 0; 105 virtual void SetSocketFailureCallback(const base::Closure& callback) = 0;
103 106
104 // Marks this socket as the leading connection. 107 // Marks this socket as the leading connection.
105 virtual void SetIsLeader() = 0; 108 virtual void SetIsLeader() = 0;
106 109
107 // In the case of a failed connection, run the appropriate callback. 110 // In the case of a failed connection, run the appropriate callback.
108 virtual void OnSocketFailure() = 0; 111 virtual void OnSocketFailure() = 0;
109 112
110 // Gets the SSL CertificateRequest info of the socket after Connect failed 113 // Gets the SSL CertificateRequest info of the socket after Connect failed
111 // with ERR_SSL_CLIENT_AUTH_CERT_NEEDED. 114 // with ERR_SSL_CLIENT_AUTH_CERT_NEEDED.
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 bool channel_id_sent_; 212 bool channel_id_sent_;
210 // True if SCTs were received via a TLS extension. 213 // True if SCTs were received via a TLS extension.
211 bool signed_cert_timestamps_received_; 214 bool signed_cert_timestamps_received_;
212 // True if a stapled OCSP response was received. 215 // True if a stapled OCSP response was received.
213 bool stapled_ocsp_response_received_; 216 bool stapled_ocsp_response_received_;
214 }; 217 };
215 218
216 } // namespace net 219 } // namespace net
217 220
218 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ 221 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « no previous file | net/socket/ssl_client_socket_openssl.h » ('j') | net/socket/ssl_client_socket_openssl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698