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 <map> | 8 #include <map> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 2100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2111 // |session_recv_window_size_| does not change. | 2111 // |session_recv_window_size_| does not change. |
2112 DecreaseRecvWindowSize(static_cast<int32>(len)); | 2112 DecreaseRecvWindowSize(static_cast<int32>(len)); |
2113 IncreaseRecvWindowSize(static_cast<int32>(len)); | 2113 IncreaseRecvWindowSize(static_cast<int32>(len)); |
2114 | 2114 |
2115 ActiveStreamMap::iterator it = active_streams_.find(stream_id); | 2115 ActiveStreamMap::iterator it = active_streams_.find(stream_id); |
2116 if (it == active_streams_.end()) | 2116 if (it == active_streams_.end()) |
2117 return; | 2117 return; |
2118 it->second.stream->OnPaddingConsumed(len); | 2118 it->second.stream->OnPaddingConsumed(len); |
2119 } | 2119 } |
2120 | 2120 |
| 2121 SpdyHeadersHandlerInterface* SpdySession::OnHeaderFrameStart( |
| 2122 SpdyStreamId stream_id) { |
| 2123 LOG(FATAL); |
| 2124 return nullptr; |
| 2125 } |
| 2126 |
| 2127 void SpdySession::OnHeaderFrameEnd(SpdyStreamId stream_id, bool end_headers) { |
| 2128 LOG(FATAL); |
| 2129 } |
| 2130 |
2121 void SpdySession::OnSettings(bool clear_persisted) { | 2131 void SpdySession::OnSettings(bool clear_persisted) { |
2122 CHECK(in_io_loop_); | 2132 CHECK(in_io_loop_); |
2123 | 2133 |
2124 if (clear_persisted) | 2134 if (clear_persisted) |
2125 http_server_properties_->ClearSpdySettings(host_port_pair()); | 2135 http_server_properties_->ClearSpdySettings(host_port_pair()); |
2126 | 2136 |
2127 if (net_log_.IsCapturing()) { | 2137 if (net_log_.IsCapturing()) { |
2128 net_log_.AddEvent(NetLog::TYPE_HTTP2_SESSION_RECV_SETTINGS, | 2138 net_log_.AddEvent(NetLog::TYPE_HTTP2_SESSION_RECV_SETTINGS, |
2129 base::Bind(&NetLogSpdySettingsCallback, host_port_pair(), | 2139 base::Bind(&NetLogSpdySettingsCallback, host_port_pair(), |
2130 clear_persisted)); | 2140 clear_persisted)); |
(...skipping 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3265 if (!queue->empty()) { | 3275 if (!queue->empty()) { |
3266 SpdyStreamId stream_id = queue->front(); | 3276 SpdyStreamId stream_id = queue->front(); |
3267 queue->pop_front(); | 3277 queue->pop_front(); |
3268 return stream_id; | 3278 return stream_id; |
3269 } | 3279 } |
3270 } | 3280 } |
3271 return 0; | 3281 return 0; |
3272 } | 3282 } |
3273 | 3283 |
3274 } // namespace net | 3284 } // namespace net |
OLD | NEW |