OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/linked_ptr.h" | 9 #include "base/memory/linked_ptr.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 1237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1248 break; | 1248 break; |
1249 case spdy::WINDOW_UPDATE: | 1249 case spdy::WINDOW_UPDATE: |
1250 OnWindowUpdate( | 1250 OnWindowUpdate( |
1251 *reinterpret_cast<const spdy::SpdyWindowUpdateControlFrame*>(frame)); | 1251 *reinterpret_cast<const spdy::SpdyWindowUpdateControlFrame*>(frame)); |
1252 break; | 1252 break; |
1253 default: | 1253 default: |
1254 DCHECK(false); // Error! | 1254 DCHECK(false); // Error! |
1255 } | 1255 } |
1256 } | 1256 } |
1257 | 1257 |
| 1258 bool SpdySession::OnControlFrameHeaderData(spdy::SpdyStreamId stream_id, |
| 1259 const char* header_data, |
| 1260 size_t len) { |
| 1261 DCHECK(false); |
| 1262 return false; |
| 1263 } |
| 1264 |
| 1265 void SpdySession::OnDataFrameHeader(const spdy::SpdyDataFrame* frame) { |
| 1266 DCHECK(false); |
| 1267 } |
| 1268 |
1258 void SpdySession::OnRst(const spdy::SpdyRstStreamControlFrame& frame) { | 1269 void SpdySession::OnRst(const spdy::SpdyRstStreamControlFrame& frame) { |
1259 spdy::SpdyStreamId stream_id = frame.stream_id(); | 1270 spdy::SpdyStreamId stream_id = frame.stream_id(); |
1260 | 1271 |
1261 net_log().AddEvent( | 1272 net_log().AddEvent( |
1262 NetLog::TYPE_SPDY_SESSION_RST_STREAM, | 1273 NetLog::TYPE_SPDY_SESSION_RST_STREAM, |
1263 make_scoped_refptr( | 1274 make_scoped_refptr( |
1264 new NetLogSpdyRstParameter(stream_id, frame.status()))); | 1275 new NetLogSpdyRstParameter(stream_id, frame.status()))); |
1265 | 1276 |
1266 bool valid_stream = IsStreamActive(stream_id); | 1277 bool valid_stream = IsStreamActive(stream_id); |
1267 if (!valid_stream) { | 1278 if (!valid_stream) { |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1520 if (it == pending_callback_map_.end()) | 1531 if (it == pending_callback_map_.end()) |
1521 return; | 1532 return; |
1522 | 1533 |
1523 CompletionCallback* callback = it->second.callback; | 1534 CompletionCallback* callback = it->second.callback; |
1524 int result = it->second.result; | 1535 int result = it->second.result; |
1525 pending_callback_map_.erase(it); | 1536 pending_callback_map_.erase(it); |
1526 callback->Run(result); | 1537 callback->Run(result); |
1527 } | 1538 } |
1528 | 1539 |
1529 } // namespace net | 1540 } // namespace net |
OLD | NEW |