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

Side by Side Diff: net/http/http_stream_request.h

Issue 6017010: Ensure that when using False Start + client auth, bad client certificates are not cached (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_HTTP_HTTP_STREAM_REQUEST_H_ 5 #ifndef NET_HTTP_HTTP_STREAM_REQUEST_H_
6 #define NET_HTTP_HTTP_STREAM_REQUEST_H_ 6 #define NET_HTTP_HTTP_STREAM_REQUEST_H_
7 7
8 #include "base/scoped_ptr.h" 8 #include "base/scoped_ptr.h"
9 #include "base/task.h" 9 #include "base/task.h"
10 #include "net/base/completion_callback.h" 10 #include "net/base/completion_callback.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 int ReconsiderProxyAfterError(int error); 165 int ReconsiderProxyAfterError(int error);
166 166
167 // Called to handle a certificate error. Stores the certificate in the 167 // Called to handle a certificate error. Stores the certificate in the
168 // allowed_bad_certs list, and checks if the error can be ignored. Returns 168 // allowed_bad_certs list, and checks if the error can be ignored. Returns
169 // OK if it can be ignored, or the error code otherwise. 169 // OK if it can be ignored, or the error code otherwise.
170 int HandleCertificateError(int error); 170 int HandleCertificateError(int error);
171 171
172 // Called to handle a client certificate request. 172 // Called to handle a client certificate request.
173 int HandleCertificateRequest(int error); 173 int HandleCertificateRequest(int error);
174 174
175 // Called to possibly recover from an SSL handshake error. Sets next_state_
176 // and returns OK if recovering from the error. Otherwise, the same error
177 // code is returned.
178 int HandleSSLHandshakeError(int error);
179
180 // Moves this stream request into SPDY mode. 175 // Moves this stream request into SPDY mode.
181 void SwitchToSpdyMode(); 176 void SwitchToSpdyMode();
182 177
183 // Record histograms of latency until Connect() completes. 178 // Record histograms of latency until Connect() completes.
184 static void LogHttpConnectedMetrics(const ClientSocketHandle& handle); 179 static void LogHttpConnectedMetrics(const ClientSocketHandle& handle);
185 180
186 const HttpRequestInfo* request_info_; // Use request_info(). 181 const HttpRequestInfo* request_info_; // Use request_info().
187 ProxyInfo* proxy_info_; // Use proxy_info(). 182 ProxyInfo* proxy_info_; // Use proxy_info().
188 SSLConfig* ssl_config_; // Use ssl_config(). 183 SSLConfig* ssl_config_; // Use ssl_config().
189 184
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 int num_streams_; 237 int num_streams_;
243 238
244 ScopedRunnableMethodFactory<HttpStreamRequest> method_factory_; 239 ScopedRunnableMethodFactory<HttpStreamRequest> method_factory_;
245 240
246 DISALLOW_COPY_AND_ASSIGN(HttpStreamRequest); 241 DISALLOW_COPY_AND_ASSIGN(HttpStreamRequest);
247 }; 242 };
248 243
249 } // namespace net 244 } // namespace net
250 245
251 #endif // NET_HTTP_HTTP_STREAM_REQUEST_H_ 246 #endif // NET_HTTP_HTTP_STREAM_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698