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

Side by Side Diff: net/quic/quic_http_stream.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/quic/quic_http_stream.h" 5 #include "net/quic/quic_http_stream.h"
6 6
7 #include "base/callback_helpers.h" 7 #include "base/callback_helpers.h"
8 #include "base/metrics/histogram_macros.h" 8 #include "base/metrics/histogram_macros.h"
9 #include "base/strings/string_split.h" 9 #include "base/strings/string_split.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 QuicHttpStream::QuicHttpStream( 44 QuicHttpStream::QuicHttpStream(
45 const base::WeakPtr<QuicChromiumClientSession>& session) 45 const base::WeakPtr<QuicChromiumClientSession>& session)
46 : next_state_(STATE_NONE), 46 : next_state_(STATE_NONE),
47 session_(session), 47 session_(session),
48 session_error_(OK), 48 session_error_(OK),
49 was_handshake_confirmed_(session->IsCryptoHandshakeConfirmed()), 49 was_handshake_confirmed_(session->IsCryptoHandshakeConfirmed()),
50 stream_(nullptr), 50 stream_(nullptr),
51 request_info_(nullptr), 51 request_info_(nullptr),
52 request_body_stream_(nullptr), 52 request_body_stream_(nullptr),
53 priority_(MINIMUM_PRIORITY), 53 priority_(IDLE),
54 response_info_(nullptr), 54 response_info_(nullptr),
55 response_status_(OK), 55 response_status_(OK),
56 response_headers_received_(false), 56 response_headers_received_(false),
57 headers_bytes_received_(0), 57 headers_bytes_received_(0),
58 headers_bytes_sent_(0), 58 headers_bytes_sent_(0),
59 closed_stream_received_bytes_(0), 59 closed_stream_received_bytes_(0),
60 closed_stream_sent_bytes_(0), 60 closed_stream_sent_bytes_(0),
61 user_buffer_len_(0), 61 user_buffer_len_(0),
62 quic_connection_error_(QUIC_NO_ERROR), 62 quic_connection_error_(QUIC_NO_ERROR),
63 port_migration_detected_(false), 63 port_migration_detected_(false),
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 closed_stream_sent_bytes_ = stream_->stream_bytes_written(); 775 closed_stream_sent_bytes_ = stream_->stream_bytes_written();
776 stream_ = nullptr; 776 stream_ = nullptr;
777 777
778 // If |request_body_stream_| is non-NULL, Reset it, to abort any in progress 778 // If |request_body_stream_| is non-NULL, Reset it, to abort any in progress
779 // read. 779 // read.
780 if (request_body_stream_) 780 if (request_body_stream_)
781 request_body_stream_->Reset(); 781 request_body_stream_->Reset();
782 } 782 }
783 783
784 } // namespace net 784 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698