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

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

Issue 2093873002: Unwind fallback metrics and SSLFailureState. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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_HTTP_HTTP_STREAM_FACTORY_H_ 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_H_
6 #define NET_HTTP_HTTP_STREAM_FACTORY_H_ 6 #define NET_HTTP_HTTP_STREAM_FACTORY_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 #include "net/base/completion_callback.h" 14 #include "net/base/completion_callback.h"
15 #include "net/base/load_states.h" 15 #include "net/base/load_states.h"
16 #include "net/base/net_export.h" 16 #include "net/base/net_export.h"
17 #include "net/base/request_priority.h" 17 #include "net/base/request_priority.h"
18 #include "net/http/http_server_properties.h" 18 #include "net/http/http_server_properties.h"
19 #include "net/socket/connection_attempts.h" 19 #include "net/socket/connection_attempts.h"
20 #include "net/ssl/ssl_failure_state.h"
21 // This file can be included from net/http even though 20 // This file can be included from net/http even though
22 // it is in net/websockets because it doesn't 21 // it is in net/websockets because it doesn't
23 // introduce any link dependency to net/websockets. 22 // introduce any link dependency to net/websockets.
24 #include "net/websockets/websocket_handshake_stream_base.h" 23 #include "net/websockets/websocket_handshake_stream_base.h"
25 24
26 class GURL; 25 class GURL;
27 26
28 namespace base { 27 namespace base {
29 class Value; 28 class Value;
30 } 29 }
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 WebSocketHandshakeStreamBase* stream) = 0; 92 WebSocketHandshakeStreamBase* stream) = 0;
94 93
95 virtual void OnBidirectionalStreamImplReady( 94 virtual void OnBidirectionalStreamImplReady(
96 const SSLConfig& used_ssl_config, 95 const SSLConfig& used_ssl_config,
97 const ProxyInfo& used_proxy_info, 96 const ProxyInfo& used_proxy_info,
98 BidirectionalStreamImpl* stream) = 0; 97 BidirectionalStreamImpl* stream) = 0;
99 98
100 // This is the failure to create a stream case. 99 // This is the failure to create a stream case.
101 // |used_ssl_config| indicates the actual SSL configuration used for this 100 // |used_ssl_config| indicates the actual SSL configuration used for this
102 // stream, since the HttpStreamRequest may have modified the configuration 101 // stream, since the HttpStreamRequest may have modified the configuration
103 // during stream processing. If an SSL handshake failed, |ssl_failure_state| 102 // during stream processing.
104 // is the state the SSLClientSocket was in.
105 virtual void OnStreamFailed(int status, 103 virtual void OnStreamFailed(int status,
106 const SSLConfig& used_ssl_config, 104 const SSLConfig& used_ssl_config) = 0;
107 SSLFailureState ssl_failure_state) = 0;
108 105
109 // Called when we have a certificate error for the request. 106 // Called when we have a certificate error for the request.
110 // |used_ssl_config| indicates the actual SSL configuration used for this 107 // |used_ssl_config| indicates the actual SSL configuration used for this
111 // stream, since the HttpStreamRequest may have modified the configuration 108 // stream, since the HttpStreamRequest may have modified the configuration
112 // during stream processing. 109 // during stream processing.
113 virtual void OnCertificateError(int status, 110 virtual void OnCertificateError(int status,
114 const SSLConfig& used_ssl_config, 111 const SSLConfig& used_ssl_config,
115 const SSLInfo& ssl_info) = 0; 112 const SSLInfo& ssl_info) = 0;
116 113
117 // This is the failure case where we need proxy authentication during 114 // This is the failure case where we need proxy authentication during
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 static bool spdy_enabled_; 263 static bool spdy_enabled_;
267 264
268 url::SchemeHostPort RewriteHost(const url::SchemeHostPort& server); 265 url::SchemeHostPort RewriteHost(const url::SchemeHostPort& server);
269 266
270 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); 267 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory);
271 }; 268 };
272 269
273 } // namespace net 270 } // namespace net
274 271
275 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ 272 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698