| 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 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 Reset(); | 560 Reset(); |
| 561 DCHECK_NE(rv, OK); | 561 DCHECK_NE(rv, OK); |
| 562 callback.Run(rv); | 562 callback.Run(rv); |
| 563 } | 563 } |
| 564 | 564 |
| 565 void SpdyStreamRequest::Reset() { | 565 void SpdyStreamRequest::Reset() { |
| 566 type_ = SPDY_BIDIRECTIONAL_STREAM; | 566 type_ = SPDY_BIDIRECTIONAL_STREAM; |
| 567 session_.reset(); | 567 session_.reset(); |
| 568 stream_.reset(); | 568 stream_.reset(); |
| 569 url_ = GURL(); | 569 url_ = GURL(); |
| 570 priority_ = MINIMUM_PRIORITY; | 570 priority_ = IDLE; |
| 571 net_log_ = BoundNetLog(); | 571 net_log_ = BoundNetLog(); |
| 572 callback_.Reset(); | 572 callback_.Reset(); |
| 573 } | 573 } |
| 574 | 574 |
| 575 SpdySession::ActiveStreamInfo::ActiveStreamInfo() | 575 SpdySession::ActiveStreamInfo::ActiveStreamInfo() |
| 576 : stream(NULL), | 576 : stream(NULL), |
| 577 waiting_for_syn_reply(false) {} | 577 waiting_for_syn_reply(false) {} |
| 578 | 578 |
| 579 SpdySession::ActiveStreamInfo::ActiveStreamInfo(SpdyStream* stream) | 579 SpdySession::ActiveStreamInfo::ActiveStreamInfo(SpdyStream* stream) |
| 580 : stream(stream), | 580 : stream(stream), |
| (...skipping 2766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3347 if (!queue->empty()) { | 3347 if (!queue->empty()) { |
| 3348 SpdyStreamId stream_id = queue->front(); | 3348 SpdyStreamId stream_id = queue->front(); |
| 3349 queue->pop_front(); | 3349 queue->pop_front(); |
| 3350 return stream_id; | 3350 return stream_id; |
| 3351 } | 3351 } |
| 3352 } | 3352 } |
| 3353 return 0; | 3353 return 0; |
| 3354 } | 3354 } |
| 3355 | 3355 |
| 3356 } // namespace net | 3356 } // namespace net |
| OLD | NEW |