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

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

Issue 2753123002: Add --ignore-certificate-errors-spki-list switch and UMA histogram. (Closed)
Patch Set: Add --ignore-certificate-errors-spki-list switch and UMA histogram. Created 3 years, 8 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_NETWORK_SESSION_H_ 5 #ifndef NET_HTTP_HTTP_NETWORK_SESSION_H_
6 #define NET_HTTP_HTTP_NETWORK_SESSION_H_ 6 #define NET_HTTP_HTTP_NETWORK_SESSION_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <map> 11 #include <map>
12 #include <memory> 12 #include <memory>
13 #include <set> 13 #include <set>
14 #include <string> 14 #include <string>
15 #include <unordered_set> 15 #include <unordered_set>
16 #include <vector> 16 #include <vector>
17 17
18 #include "base/bind.h" 18 #include "base/bind.h"
19 #include "base/containers/flat_set.h"
19 #include "base/memory/memory_coordinator_client.h" 20 #include "base/memory/memory_coordinator_client.h"
20 #include "base/memory/memory_pressure_monitor.h" 21 #include "base/memory/memory_pressure_monitor.h"
21 #include "base/memory/ref_counted.h" 22 #include "base/memory/ref_counted.h"
22 #include "base/memory/weak_ptr.h" 23 #include "base/memory/weak_ptr.h"
23 #include "base/threading/non_thread_safe.h" 24 #include "base/threading/non_thread_safe.h"
24 #include "net/base/host_port_pair.h" 25 #include "net/base/host_port_pair.h"
25 #include "net/base/net_export.h" 26 #include "net/base/net_export.h"
26 #include "net/dns/host_resolver.h" 27 #include "net/dns/host_resolver.h"
27 #include "net/http/http_auth_cache.h" 28 #include "net/http/http_auth_cache.h"
28 #include "net/http/http_stream_factory.h" 29 #include "net/http/http_stream_factory.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 CTVerifier* cert_transparency_verifier; 91 CTVerifier* cert_transparency_verifier;
91 CTPolicyEnforcer* ct_policy_enforcer; 92 CTPolicyEnforcer* ct_policy_enforcer;
92 ProxyService* proxy_service; 93 ProxyService* proxy_service;
93 SSLConfigService* ssl_config_service; 94 SSLConfigService* ssl_config_service;
94 HttpAuthHandlerFactory* http_auth_handler_factory; 95 HttpAuthHandlerFactory* http_auth_handler_factory;
95 HttpServerProperties* http_server_properties; 96 HttpServerProperties* http_server_properties;
96 NetLog* net_log; 97 NetLog* net_log;
97 HostMappingRules* host_mapping_rules; 98 HostMappingRules* host_mapping_rules;
98 SocketPerformanceWatcherFactory* socket_performance_watcher_factory; 99 SocketPerformanceWatcherFactory* socket_performance_watcher_factory;
99 bool ignore_certificate_errors; 100 bool ignore_certificate_errors;
101 base::flat_set<SHA256HashValue, SHA256HashValueLessThan>
102 ignore_certificate_error_spki_set;
100 uint16_t testing_fixed_http_port; 103 uint16_t testing_fixed_http_port;
101 uint16_t testing_fixed_https_port; 104 uint16_t testing_fixed_https_port;
102 bool enable_tcp_fast_open_for_ssl; 105 bool enable_tcp_fast_open_for_ssl;
103 106
104 // Use SPDY ping frames to test for connection health after idle. 107 // Use SPDY ping frames to test for connection health after idle.
105 bool enable_spdy_ping_based_connection_checking; 108 bool enable_spdy_ping_based_connection_checking;
106 bool enable_http2; 109 bool enable_http2;
107 size_t spdy_session_max_recv_window_size; 110 size_t spdy_session_max_recv_window_size;
108 // HTTP/2 connection settings. 111 // HTTP/2 connection settings.
109 // Unknown settings will still be sent to the server. 112 // Unknown settings will still be sent to the server.
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 NextProtoVector next_protos_; 349 NextProtoVector next_protos_;
347 350
348 Params params_; 351 Params params_;
349 352
350 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; 353 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_;
351 }; 354 };
352 355
353 } // namespace net 356 } // namespace net
354 357
355 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ 358 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698