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

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: Sync'd to p390110 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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« net/spdy/spdy_http_utils.cc ('K') | « net/spdy/spdy_network_transaction_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698