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

Unified Diff: net/spdy/spdy_stream.cc

Issue 10185007: [net] Change order of RequestPriority to natural: higher > lower (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use MINIMUM_PRIORITY instead of 0. Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: net/spdy/spdy_stream.cc
diff --git a/net/spdy/spdy_stream.cc b/net/spdy/spdy_stream.cc
index c8238fc2f41e1e8ad1072063160010baac7de6e3..154cb279eb796877a95b6c8312a9494a4f250d7b 100644
--- a/net/spdy/spdy_stream.cc
+++ b/net/spdy/spdy_stream.cc
@@ -73,7 +73,7 @@ SpdyStream::SpdyStream(SpdySession* session,
const BoundNetLog& net_log)
: continue_buffering_data_(true),
stream_id_(stream_id),
- priority_(0),
+ priority_(HIGHEST),
slot_(0),
stalled_by_flow_control_(false),
send_window_size_(kSpdyStreamInitialWindowSize),
@@ -663,7 +663,7 @@ int SpdyStream::DoSendDomainBoundCert() {
origin.erase(origin.length() - 1); // trim trailing slash
int rv = session_->WriteCredentialFrame(
origin, domain_bound_cert_type_, domain_bound_private_key_,
- domain_bound_cert_, static_cast<RequestPriority>(priority_));
Ryan Hamilton 2012/04/23 22:51:05 Nice
+ domain_bound_cert_, priority_);
if (rv != ERR_IO_PENDING)
return rv;
return OK;
@@ -686,7 +686,7 @@ int SpdyStream::DoSendHeaders() {
CHECK(request_.get());
int result = session_->WriteSynStream(
- stream_id_, static_cast<RequestPriority>(priority_), slot_, flags,
+ stream_id_, priority_, slot_, flags,
request_);
if (result != ERR_IO_PENDING)
return result;

Powered by Google App Engine
This is Rietveld 408576698