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

Side by Side Diff: net/spdy/spdy_session_pool.h

Issue 1779733003: Fix bug in net::RequestPriority -> HTTP/2 dependency conversion. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make bi-directional stream unittests enable priority->dependency setting. Created 4 years, 9 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/spdy/spdy_session.cc ('k') | net/spdy/spdy_session_pool.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_SPDY_SPDY_SESSION_POOL_H_ 5 #ifndef NET_SPDY_SPDY_SESSION_POOL_H_
6 #define NET_SPDY_SPDY_SESSION_POOL_H_ 6 #define NET_SPDY_SPDY_SESSION_POOL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // |default_protocol| may be kProtoUnknown (e.g., if SPDY is 49 // |default_protocol| may be kProtoUnknown (e.g., if SPDY is
50 // disabled), in which case it's set to a default value. Otherwise, 50 // disabled), in which case it's set to a default value. Otherwise,
51 // it must be a SPDY protocol. 51 // it must be a SPDY protocol.
52 SpdySessionPool( 52 SpdySessionPool(
53 HostResolver* host_resolver, 53 HostResolver* host_resolver,
54 SSLConfigService* ssl_config_service, 54 SSLConfigService* ssl_config_service,
55 const base::WeakPtr<HttpServerProperties>& http_server_properties, 55 const base::WeakPtr<HttpServerProperties>& http_server_properties,
56 TransportSecurityState* transport_security_state, 56 TransportSecurityState* transport_security_state,
57 bool enable_ping_based_connection_checking, 57 bool enable_ping_based_connection_checking,
58 bool enable_priority_dependencies,
58 NextProto default_protocol, 59 NextProto default_protocol,
59 size_t session_max_recv_window_size, 60 size_t session_max_recv_window_size,
60 size_t stream_max_recv_window_size, 61 size_t stream_max_recv_window_size,
61 SpdySessionPool::TimeFunc time_func, 62 SpdySessionPool::TimeFunc time_func,
62 ProxyDelegate* proxy_delegate); 63 ProxyDelegate* proxy_delegate);
63 ~SpdySessionPool() override; 64 ~SpdySessionPool() override;
64 65
65 // In the functions below, a session is "available" if this pool has 66 // In the functions below, a session is "available" if this pool has
66 // a reference to it and there is some SpdySessionKey for which 67 // a reference to it and there is some SpdySessionKey for which
67 // FindAvailableSession() will return it. A session is "unavailable" 68 // FindAvailableSession() will return it. A session is "unavailable"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 // same GURL. 221 // same GURL.
221 UnclaimedPushedStreamMap unclaimed_pushed_streams_; 222 UnclaimedPushedStreamMap unclaimed_pushed_streams_;
222 223
223 const scoped_refptr<SSLConfigService> ssl_config_service_; 224 const scoped_refptr<SSLConfigService> ssl_config_service_;
224 HostResolver* const resolver_; 225 HostResolver* const resolver_;
225 226
226 // Defaults to true. May be controlled via SpdySessionPoolPeer for tests. 227 // Defaults to true. May be controlled via SpdySessionPoolPeer for tests.
227 bool verify_domain_authentication_; 228 bool verify_domain_authentication_;
228 bool enable_sending_initial_data_; 229 bool enable_sending_initial_data_;
229 bool enable_ping_based_connection_checking_; 230 bool enable_ping_based_connection_checking_;
231 const bool enable_priority_dependencies_;
230 const NextProto default_protocol_; 232 const NextProto default_protocol_;
231 size_t session_max_recv_window_size_; 233 size_t session_max_recv_window_size_;
232 size_t stream_max_recv_window_size_; 234 size_t stream_max_recv_window_size_;
233 TimeFunc time_func_; 235 TimeFunc time_func_;
234 236
235 // Determines if a proxy is a trusted SPDY proxy, which is allowed to push 237 // Determines if a proxy is a trusted SPDY proxy, which is allowed to push
236 // resources from origins that are different from those of their associated 238 // resources from origins that are different from those of their associated
237 // streams. May be nullptr. 239 // streams. May be nullptr.
238 ProxyDelegate* proxy_delegate_; 240 ProxyDelegate* proxy_delegate_;
239 241
240 DISALLOW_COPY_AND_ASSIGN(SpdySessionPool); 242 DISALLOW_COPY_AND_ASSIGN(SpdySessionPool);
241 }; 243 };
242 244
243 } // namespace net 245 } // namespace net
244 246
245 #endif // NET_SPDY_SPDY_SESSION_POOL_H_ 247 #endif // NET_SPDY_SPDY_SESSION_POOL_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_session.cc ('k') | net/spdy/spdy_session_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698