Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: net/spdy/spdy_session.cc

Issue 1866483002: Add a new priority level, THROTTLED, below IDLE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporated comments. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698