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

Unified Diff: net/spdy/spdy_io_buffer.cc

Issue 10185007: [net] Change order of RequestPriority to natural: higher > lower (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Responded to review 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_io_buffer.cc
diff --git a/net/spdy/spdy_io_buffer.cc b/net/spdy/spdy_io_buffer.cc
index f7120c8125ece3f7737d77c235f38890d8cb6a51..0ad6927954d985a9af676c3997b33622879d2f6e 100644
--- a/net/spdy/spdy_io_buffer.cc
+++ b/net/spdy/spdy_io_buffer.cc
@@ -11,13 +11,14 @@ namespace net {
uint64 SpdyIOBuffer::order_ = 0;
SpdyIOBuffer::SpdyIOBuffer(
- IOBuffer* buffer, int size, int priority, SpdyStream* stream)
+ IOBuffer* buffer, int size, RequestPriority priority, SpdyStream* stream)
: buffer_(new DrainableIOBuffer(buffer, size)),
priority_(priority),
position_(++order_),
stream_(stream) {}
-SpdyIOBuffer::SpdyIOBuffer() : priority_(0), position_(0), stream_(NULL) {}
+SpdyIOBuffer::SpdyIOBuffer() : priority_(HIGHEST), position_(0), stream_(NULL) {
+}
SpdyIOBuffer::~SpdyIOBuffer() {}

Powered by Google App Engine
This is Rietveld 408576698