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

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

Issue 2041863002: Remove HttpServerProperies::GetWeakPtr(). (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 #include "net/spdy/spdy_session.h" 5 #include "net/spdy/spdy_session.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 HostPortPair(new_hostname, 0), ssl_info.is_issued_by_known_root, 662 HostPortPair(new_hostname, 0), ssl_info.is_issued_by_known_root,
663 ssl_info.public_key_hashes, ssl_info.unverified_cert.get(), 663 ssl_info.public_key_hashes, ssl_info.unverified_cert.get(),
664 ssl_info.cert.get(), TransportSecurityState::DISABLE_PIN_REPORTS, 664 ssl_info.cert.get(), TransportSecurityState::DISABLE_PIN_REPORTS,
665 &pinning_failure_log)) { 665 &pinning_failure_log)) {
666 return false; 666 return false;
667 } 667 }
668 668
669 return true; 669 return true;
670 } 670 }
671 671
672 SpdySession::SpdySession( 672 SpdySession::SpdySession(const SpdySessionKey& spdy_session_key,
673 const SpdySessionKey& spdy_session_key, 673 HttpServerProperties* const http_server_properties,
asanka 2016/06/07 20:19:56 Same comment as elsewhere. Marking the parameter c
Bence 2016/06/08 18:27:18 Done.
674 const base::WeakPtr<HttpServerProperties>& http_server_properties, 674 TransportSecurityState* transport_security_state,
675 TransportSecurityState* transport_security_state, 675 bool verify_domain_authentication,
676 bool verify_domain_authentication, 676 bool enable_sending_initial_data,
677 bool enable_sending_initial_data, 677 bool enable_ping_based_connection_checking,
678 bool enable_ping_based_connection_checking, 678 bool enable_priority_dependencies,
679 bool enable_priority_dependencies, 679 NextProto default_protocol,
680 NextProto default_protocol, 680 size_t session_max_recv_window_size,
681 size_t session_max_recv_window_size, 681 size_t stream_max_recv_window_size,
682 size_t stream_max_recv_window_size, 682 TimeFunc time_func,
683 TimeFunc time_func, 683 ProxyDelegate* proxy_delegate,
684 ProxyDelegate* proxy_delegate, 684 NetLog* net_log)
685 NetLog* net_log)
686 : in_io_loop_(false), 685 : in_io_loop_(false),
687 spdy_session_key_(spdy_session_key), 686 spdy_session_key_(spdy_session_key),
688 pool_(NULL), 687 pool_(NULL),
689 http_server_properties_(http_server_properties), 688 http_server_properties_(http_server_properties),
690 transport_security_state_(transport_security_state), 689 transport_security_state_(transport_security_state),
691 read_buffer_(new IOBuffer(kReadBufferSize)), 690 read_buffer_(new IOBuffer(kReadBufferSize)),
692 stream_hi_water_mark_(kFirstStreamId), 691 stream_hi_water_mark_(kFirstStreamId),
693 last_accepted_push_stream_id_(0), 692 last_accepted_push_stream_id_(0),
694 unclaimed_pushed_streams_(this), 693 unclaimed_pushed_streams_(this),
695 num_pushed_streams_(0u), 694 num_pushed_streams_(0u),
(...skipping 2693 matching lines...) Expand 10 before | Expand all | Expand 10 after
3389 if (!queue->empty()) { 3388 if (!queue->empty()) {
3390 SpdyStreamId stream_id = queue->front(); 3389 SpdyStreamId stream_id = queue->front();
3391 queue->pop_front(); 3390 queue->pop_front();
3392 return stream_id; 3391 return stream_id;
3393 } 3392 }
3394 } 3393 }
3395 return 0; 3394 return 0;
3396 } 3395 }
3397 3396
3398 } // namespace net 3397 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698