| 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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 Reset(); | 574 Reset(); |
| 575 DCHECK_NE(rv, OK); | 575 DCHECK_NE(rv, OK); |
| 576 callback.Run(rv); | 576 callback.Run(rv); |
| 577 } | 577 } |
| 578 | 578 |
| 579 void SpdyStreamRequest::Reset() { | 579 void SpdyStreamRequest::Reset() { |
| 580 type_ = SPDY_BIDIRECTIONAL_STREAM; | 580 type_ = SPDY_BIDIRECTIONAL_STREAM; |
| 581 session_.reset(); | 581 session_.reset(); |
| 582 stream_.reset(); | 582 stream_.reset(); |
| 583 url_ = GURL(); | 583 url_ = GURL(); |
| 584 priority_ = MINIMUM_PRIORITY; | 584 priority_ = IDLE; |
| 585 net_log_ = BoundNetLog(); | 585 net_log_ = BoundNetLog(); |
| 586 callback_.Reset(); | 586 callback_.Reset(); |
| 587 } | 587 } |
| 588 | 588 |
| 589 SpdySession::ActiveStreamInfo::ActiveStreamInfo() | 589 SpdySession::ActiveStreamInfo::ActiveStreamInfo() |
| 590 : stream(NULL), | 590 : stream(NULL), |
| 591 waiting_for_syn_reply(false) {} | 591 waiting_for_syn_reply(false) {} |
| 592 | 592 |
| 593 SpdySession::ActiveStreamInfo::ActiveStreamInfo(SpdyStream* stream) | 593 SpdySession::ActiveStreamInfo::ActiveStreamInfo(SpdyStream* stream) |
| 594 : stream(stream), | 594 : stream(stream), |
| (...skipping 2734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3329 if (!queue->empty()) { | 3329 if (!queue->empty()) { |
| 3330 SpdyStreamId stream_id = queue->front(); | 3330 SpdyStreamId stream_id = queue->front(); |
| 3331 queue->pop_front(); | 3331 queue->pop_front(); |
| 3332 return stream_id; | 3332 return stream_id; |
| 3333 } | 3333 } |
| 3334 } | 3334 } |
| 3335 return 0; | 3335 return 0; |
| 3336 } | 3336 } |
| 3337 | 3337 |
| 3338 } // namespace net | 3338 } // namespace net |
| OLD | NEW |