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

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

Issue 2041863002: Remove HttpServerProperies::GetWeakPtr(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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
« no previous file with comments | « net/spdy/spdy_session_pool.h ('k') | net/spdy/spdy_session_unittest.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 #include "net/spdy/spdy_session_pool.h" 5 #include "net/spdy/spdy_session_pool.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/histogram_macros.h" 10 #include "base/metrics/histogram_macros.h"
(...skipping 16 matching lines...) Expand all
27 FOUND_EXISTING_FROM_IP_POOL = 2, 27 FOUND_EXISTING_FROM_IP_POOL = 2,
28 IMPORTED_FROM_SOCKET = 3, 28 IMPORTED_FROM_SOCKET = 3,
29 SPDY_SESSION_GET_MAX = 4 29 SPDY_SESSION_GET_MAX = 4
30 }; 30 };
31 31
32 } // namespace 32 } // namespace
33 33
34 SpdySessionPool::SpdySessionPool( 34 SpdySessionPool::SpdySessionPool(
35 HostResolver* resolver, 35 HostResolver* resolver,
36 SSLConfigService* ssl_config_service, 36 SSLConfigService* ssl_config_service,
37 const base::WeakPtr<HttpServerProperties>& http_server_properties, 37 HttpServerProperties* http_server_properties,
38 TransportSecurityState* transport_security_state, 38 TransportSecurityState* transport_security_state,
39 bool enable_ping_based_connection_checking, 39 bool enable_ping_based_connection_checking,
40 bool enable_priority_dependencies, 40 bool enable_priority_dependencies,
41 NextProto default_protocol, 41 NextProto default_protocol,
42 size_t session_max_recv_window_size, 42 size_t session_max_recv_window_size,
43 size_t stream_max_recv_window_size, 43 size_t stream_max_recv_window_size,
44 SpdySessionPool::TimeFunc time_func, 44 SpdySessionPool::TimeFunc time_func,
45 ProxyDelegate* proxy_delegate) 45 ProxyDelegate* proxy_delegate)
46 : http_server_properties_(http_server_properties), 46 : http_server_properties_(http_server_properties),
47 transport_security_state_(transport_security_state), 47 transport_security_state_(transport_security_state),
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 449
450 if (idle_only && (*it)->is_active()) 450 if (idle_only && (*it)->is_active())
451 continue; 451 continue;
452 452
453 (*it)->CloseSessionOnError(error, description); 453 (*it)->CloseSessionOnError(error, description);
454 DCHECK(!IsSessionAvailable(*it)); 454 DCHECK(!IsSessionAvailable(*it));
455 } 455 }
456 } 456 }
457 457
458 } // namespace net 458 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_session_pool.h ('k') | net/spdy/spdy_session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698