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 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
644 } | 644 } |
645 | 645 |
646 SpdySession::SpdySession(const SpdySessionKey& spdy_session_key, | 646 SpdySession::SpdySession(const SpdySessionKey& spdy_session_key, |
647 HttpServerProperties* http_server_properties, | 647 HttpServerProperties* http_server_properties, |
648 TransportSecurityState* transport_security_state, | 648 TransportSecurityState* transport_security_state, |
649 bool enable_sending_initial_data, | 649 bool enable_sending_initial_data, |
650 bool enable_ping_based_connection_checking, | 650 bool enable_ping_based_connection_checking, |
651 size_t session_max_recv_window_size, | 651 size_t session_max_recv_window_size, |
652 size_t stream_max_recv_window_size, | 652 size_t stream_max_recv_window_size, |
653 TimeFunc time_func, | 653 TimeFunc time_func, |
654 ServerPushDelegate* push_delegate, | |
654 ProxyDelegate* proxy_delegate, | 655 ProxyDelegate* proxy_delegate, |
655 NetLog* net_log) | 656 NetLog* net_log) |
656 : in_io_loop_(false), | 657 : in_io_loop_(false), |
657 spdy_session_key_(spdy_session_key), | 658 spdy_session_key_(spdy_session_key), |
658 pool_(NULL), | 659 pool_(NULL), |
659 http_server_properties_(http_server_properties), | 660 http_server_properties_(http_server_properties), |
660 transport_security_state_(transport_security_state), | 661 transport_security_state_(transport_security_state), |
661 read_buffer_(new IOBuffer(kReadBufferSize)), | 662 read_buffer_(new IOBuffer(kReadBufferSize)), |
662 stream_hi_water_mark_(kFirstStreamId), | 663 stream_hi_water_mark_(kFirstStreamId), |
663 last_accepted_push_stream_id_(0), | 664 last_accepted_push_stream_id_(0), |
664 unclaimed_pushed_streams_(this), | 665 unclaimed_pushed_streams_(this), |
665 push_delegate_(nullptr), | 666 push_delegate_(push_delegate), |
Ryan Hamilton
2016/11/23 20:43:30
ditto on the non-null check question.
Zhongyi Shi
2016/11/23 23:53:49
Acknowledged.
| |
666 num_pushed_streams_(0u), | 667 num_pushed_streams_(0u), |
667 num_active_pushed_streams_(0u), | 668 num_active_pushed_streams_(0u), |
668 bytes_pushed_count_(0u), | 669 bytes_pushed_count_(0u), |
669 bytes_pushed_and_unclaimed_count_(0u), | 670 bytes_pushed_and_unclaimed_count_(0u), |
670 in_flight_write_frame_type_(DATA), | 671 in_flight_write_frame_type_(DATA), |
671 in_flight_write_frame_size_(0), | 672 in_flight_write_frame_size_(0), |
672 is_secure_(false), | 673 is_secure_(false), |
673 availability_state_(STATE_AVAILABLE), | 674 availability_state_(STATE_AVAILABLE), |
674 read_state_(READ_STATE_DO_READ), | 675 read_state_(READ_STATE_DO_READ), |
675 write_state_(WRITE_STATE_IDLE), | 676 write_state_(WRITE_STATE_IDLE), |
(...skipping 2396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3072 if (!queue->empty()) { | 3073 if (!queue->empty()) { |
3073 SpdyStreamId stream_id = queue->front(); | 3074 SpdyStreamId stream_id = queue->front(); |
3074 queue->pop_front(); | 3075 queue->pop_front(); |
3075 return stream_id; | 3076 return stream_id; |
3076 } | 3077 } |
3077 } | 3078 } |
3078 return 0; | 3079 return 0; |
3079 } | 3080 } |
3080 | 3081 |
3081 } // namespace net | 3082 } // namespace net |
OLD | NEW |