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

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

Issue 1547273003: Set trusted SPDY proxy dynamically on per-profile basis (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated based on design doc discussion Created 4 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
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
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // SSL handshake as well as by HTTP Alternate-Protocol. 95 // SSL handshake as well as by HTTP Alternate-Protocol.
96 // TODO(mmenke): This is currently empty by default, and alternate 96 // TODO(mmenke): This is currently empty by default, and alternate
97 // protocols are disabled. We should use some reasonable 97 // protocols are disabled. We should use some reasonable
98 // defaults. 98 // defaults.
99 NextProtoVector next_protos; 99 NextProtoVector next_protos;
100 size_t spdy_session_max_recv_window_size; 100 size_t spdy_session_max_recv_window_size;
101 size_t spdy_stream_max_recv_window_size; 101 size_t spdy_stream_max_recv_window_size;
102 size_t spdy_initial_max_concurrent_streams; 102 size_t spdy_initial_max_concurrent_streams;
103 // Source of time for SPDY connections. 103 // Source of time for SPDY connections.
104 SpdySessionPool::TimeFunc time_func; 104 SpdySessionPool::TimeFunc time_func;
105 // This SPDY proxy is allowed to push resources from origins that are
106 // different from those of their associated streams.
107 std::string trusted_spdy_proxy;
108 // URLs to exclude from forced SPDY. 105 // URLs to exclude from forced SPDY.
109 std::set<HostPortPair> forced_spdy_exclusions; 106 std::set<HostPortPair> forced_spdy_exclusions;
110 // Process Alt-Svc headers. 107 // Process Alt-Svc headers.
111 bool use_alternative_services; 108 bool use_alternative_services;
112 // Only honor alternative service entries which have a higher probability 109 // Only honor alternative service entries which have a higher probability
113 // than this value. 110 // than this value.
114 double alternative_service_probability_threshold; 111 double alternative_service_probability_threshold;
115 112
116 // Enables NPN support. Note that ALPN is always enabled. 113 // Enables NPN support. Note that ALPN is always enabled.
117 bool enable_npn; 114 bool enable_npn;
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 297
301 NextProtoVector next_protos_; 298 NextProtoVector next_protos_;
302 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; 299 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS];
303 300
304 Params params_; 301 Params params_;
305 }; 302 };
306 303
307 } // namespace net 304 } // namespace net
308 305
309 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ 306 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698