| OLD | NEW |
| 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 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 663 HostPortPair(new_hostname, 0), ssl_info.is_issued_by_known_root, | 663 HostPortPair(new_hostname, 0), ssl_info.is_issued_by_known_root, |
| 664 ssl_info.public_key_hashes, ssl_info.unverified_cert.get(), | 664 ssl_info.public_key_hashes, ssl_info.unverified_cert.get(), |
| 665 ssl_info.cert.get(), TransportSecurityState::DISABLE_PIN_REPORTS, | 665 ssl_info.cert.get(), TransportSecurityState::DISABLE_PIN_REPORTS, |
| 666 &pinning_failure_log)) { | 666 &pinning_failure_log)) { |
| 667 return false; | 667 return false; |
| 668 } | 668 } |
| 669 | 669 |
| 670 return true; | 670 return true; |
| 671 } | 671 } |
| 672 | 672 |
| 673 SpdySession::SpdySession( | 673 SpdySession::SpdySession(const SpdySessionKey& spdy_session_key, |
| 674 const SpdySessionKey& spdy_session_key, | 674 HttpServerProperties* http_server_properties, |
| 675 const base::WeakPtr<HttpServerProperties>& http_server_properties, | 675 TransportSecurityState* transport_security_state, |
| 676 TransportSecurityState* transport_security_state, | 676 bool verify_domain_authentication, |
| 677 bool verify_domain_authentication, | 677 bool enable_sending_initial_data, |
| 678 bool enable_sending_initial_data, | 678 bool enable_ping_based_connection_checking, |
| 679 bool enable_ping_based_connection_checking, | 679 bool enable_priority_dependencies, |
| 680 bool enable_priority_dependencies, | 680 NextProto default_protocol, |
| 681 NextProto default_protocol, | 681 size_t session_max_recv_window_size, |
| 682 size_t session_max_recv_window_size, | 682 size_t stream_max_recv_window_size, |
| 683 size_t stream_max_recv_window_size, | 683 TimeFunc time_func, |
| 684 TimeFunc time_func, | 684 ProxyDelegate* proxy_delegate, |
| 685 ProxyDelegate* proxy_delegate, | 685 NetLog* net_log) |
| 686 NetLog* net_log) | |
| 687 : in_io_loop_(false), | 686 : in_io_loop_(false), |
| 688 spdy_session_key_(spdy_session_key), | 687 spdy_session_key_(spdy_session_key), |
| 689 pool_(NULL), | 688 pool_(NULL), |
| 690 http_server_properties_(http_server_properties), | 689 http_server_properties_(http_server_properties), |
| 691 transport_security_state_(transport_security_state), | 690 transport_security_state_(transport_security_state), |
| 692 read_buffer_(new IOBuffer(kReadBufferSize)), | 691 read_buffer_(new IOBuffer(kReadBufferSize)), |
| 693 stream_hi_water_mark_(kFirstStreamId), | 692 stream_hi_water_mark_(kFirstStreamId), |
| 694 last_accepted_push_stream_id_(0), | 693 last_accepted_push_stream_id_(0), |
| 695 unclaimed_pushed_streams_(this), | 694 unclaimed_pushed_streams_(this), |
| 696 num_pushed_streams_(0u), | 695 num_pushed_streams_(0u), |
| (...skipping 2693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3390 if (!queue->empty()) { | 3389 if (!queue->empty()) { |
| 3391 SpdyStreamId stream_id = queue->front(); | 3390 SpdyStreamId stream_id = queue->front(); |
| 3392 queue->pop_front(); | 3391 queue->pop_front(); |
| 3393 return stream_id; | 3392 return stream_id; |
| 3394 } | 3393 } |
| 3395 } | 3394 } |
| 3396 return 0; | 3395 return 0; |
| 3397 } | 3396 } |
| 3398 | 3397 |
| 3399 } // namespace net | 3398 } // namespace net |
| OLD | NEW |