| 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/chromium/spdy_session.h" | 5 #include "net/spdy/chromium/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 870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 881 // TODO(akalin): Check connection->is_initialized() instead. This | 881 // TODO(akalin): Check connection->is_initialized() instead. This |
| 882 // requires re-working CreateFakeSpdySession(), though. | 882 // requires re-working CreateFakeSpdySession(), though. |
| 883 DCHECK(connection->socket()); | 883 DCHECK(connection->socket()); |
| 884 | 884 |
| 885 connection_ = std::move(connection); | 885 connection_ = std::move(connection); |
| 886 is_secure_ = is_secure; | 886 is_secure_ = is_secure; |
| 887 | 887 |
| 888 session_send_window_size_ = kDefaultInitialWindowSize; | 888 session_send_window_size_ = kDefaultInitialWindowSize; |
| 889 session_recv_window_size_ = kDefaultInitialWindowSize; | 889 session_recv_window_size_ = kDefaultInitialWindowSize; |
| 890 | 890 |
| 891 buffered_spdy_framer_.reset(new BufferedSpdyFramer()); | 891 buffered_spdy_framer_.reset(new BufferedSpdyFramer(net_log_)); |
| 892 buffered_spdy_framer_->set_visitor(this); | 892 buffered_spdy_framer_->set_visitor(this); |
| 893 buffered_spdy_framer_->set_debug_visitor(this); | 893 buffered_spdy_framer_->set_debug_visitor(this); |
| 894 buffered_spdy_framer_->UpdateHeaderDecoderTableSize(max_header_table_size_); | 894 buffered_spdy_framer_->UpdateHeaderDecoderTableSize(max_header_table_size_); |
| 895 | 895 |
| 896 net_log_.AddEvent(NetLogEventType::HTTP2_SESSION_INITIALIZED, | 896 net_log_.AddEvent(NetLogEventType::HTTP2_SESSION_INITIALIZED, |
| 897 base::Bind(&NetLogSpdyInitializedCallback, | 897 base::Bind(&NetLogSpdyInitializedCallback, |
| 898 connection_->socket()->NetLog().source())); | 898 connection_->socket()->NetLog().source())); |
| 899 | 899 |
| 900 DCHECK_EQ(availability_state_, STATE_AVAILABLE); | 900 DCHECK_EQ(availability_state_, STATE_AVAILABLE); |
| 901 connection_->AddHigherLayeredPool(this); | 901 connection_->AddHigherLayeredPool(this); |
| (...skipping 2291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3193 if (!queue->empty()) { | 3193 if (!queue->empty()) { |
| 3194 SpdyStreamId stream_id = queue->front(); | 3194 SpdyStreamId stream_id = queue->front(); |
| 3195 queue->pop_front(); | 3195 queue->pop_front(); |
| 3196 return stream_id; | 3196 return stream_id; |
| 3197 } | 3197 } |
| 3198 } | 3198 } |
| 3199 return 0; | 3199 return 0; |
| 3200 } | 3200 } |
| 3201 | 3201 |
| 3202 } // namespace net | 3202 } // namespace net |
| OLD | NEW |