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

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

Issue 1127623005: Gather metrics classifying the cause of the TLS fallback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fallback-required
Patch Set: missing header Created 5 years, 7 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
« no previous file with comments | « net/http/http_stream_factory_impl_job.cc ('k') | net/http/http_stream_factory_impl_request.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) 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_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_ 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_
6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_ 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_
7 7
8 #include <set> 8 #include <set>
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "net/http/http_stream_factory_impl.h" 10 #include "net/http/http_stream_factory_impl.h"
11 #include "net/log/net_log.h" 11 #include "net/log/net_log.h"
12 #include "net/socket/connection_attempts.h" 12 #include "net/socket/connection_attempts.h"
13 #include "net/socket/ssl_client_socket.h" 13 #include "net/socket/ssl_client_socket.h"
14 #include "net/spdy/spdy_session_key.h" 14 #include "net/spdy/spdy_session_key.h"
15 #include "net/ssl/ssl_failure_state.h"
15 #include "url/gurl.h" 16 #include "url/gurl.h"
16 17
17 namespace net { 18 namespace net {
18 19
19 class ClientSocketHandle; 20 class ClientSocketHandle;
20 class HttpStream; 21 class HttpStream;
21 class SpdySession; 22 class SpdySession;
22 23
23 class HttpStreamFactoryImpl::Request : public HttpStreamRequest { 24 class HttpStreamFactoryImpl::Request : public HttpStreamRequest {
24 public: 25 public:
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // actually subclass HttpStreamRequest::Delegate. 75 // actually subclass HttpStreamRequest::Delegate.
75 76
76 void OnStreamReady(Job* job, 77 void OnStreamReady(Job* job,
77 const SSLConfig& used_ssl_config, 78 const SSLConfig& used_ssl_config,
78 const ProxyInfo& used_proxy_info, 79 const ProxyInfo& used_proxy_info,
79 HttpStream* stream); 80 HttpStream* stream);
80 void OnWebSocketHandshakeStreamReady(Job* job, 81 void OnWebSocketHandshakeStreamReady(Job* job,
81 const SSLConfig& used_ssl_config, 82 const SSLConfig& used_ssl_config,
82 const ProxyInfo& used_proxy_info, 83 const ProxyInfo& used_proxy_info,
83 WebSocketHandshakeStreamBase* stream); 84 WebSocketHandshakeStreamBase* stream);
84 void OnStreamFailed(Job* job, int status, const SSLConfig& used_ssl_config); 85 void OnStreamFailed(Job* job,
86 int status,
87 const SSLConfig& used_ssl_config,
88 SSLFailureState ssl_failure_state);
85 void OnCertificateError(Job* job, 89 void OnCertificateError(Job* job,
86 int status, 90 int status,
87 const SSLConfig& used_ssl_config, 91 const SSLConfig& used_ssl_config,
88 const SSLInfo& ssl_info); 92 const SSLInfo& ssl_info);
89 void OnNeedsProxyAuth(Job* job, 93 void OnNeedsProxyAuth(Job* job,
90 const HttpResponseInfo& proxy_response, 94 const HttpResponseInfo& proxy_response,
91 const SSLConfig& used_ssl_config, 95 const SSLConfig& used_ssl_config,
92 const ProxyInfo& used_proxy_info, 96 const ProxyInfo& used_proxy_info,
93 HttpAuthController* auth_controller); 97 HttpAuthController* auth_controller);
94 void OnNeedsClientAuth(Job* job, 98 void OnNeedsClientAuth(Job* job,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 NextProto protocol_negotiated_; 144 NextProto protocol_negotiated_;
141 bool using_spdy_; 145 bool using_spdy_;
142 ConnectionAttempts connection_attempts_; 146 ConnectionAttempts connection_attempts_;
143 147
144 DISALLOW_COPY_AND_ASSIGN(Request); 148 DISALLOW_COPY_AND_ASSIGN(Request);
145 }; 149 };
146 150
147 } // namespace net 151 } // namespace net
148 152
149 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_ 153 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_
OLDNEW
« no previous file with comments | « net/http/http_stream_factory_impl_job.cc ('k') | net/http/http_stream_factory_impl_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698