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

Unified Diff: net/spdy/spdy_io_buffer.h

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_io_buffer.h
diff --git a/net/spdy/spdy_io_buffer.h b/net/spdy/spdy_io_buffer.h
index e96c946df4788a9087336d34c304a05156c75c4a..1b69933f323b014b95a3ce4df75542b37340f0f4 100644
--- a/net/spdy/spdy_io_buffer.h
+++ b/net/spdy/spdy_io_buffer.h
@@ -22,8 +22,7 @@ class NET_EXPORT_PRIVATE SpdyIOBuffer {
// Constructor
// |buffer| is the actual data buffer.
// |size| is the size of the data buffer.
- // |priority| is the priority of this buffer. Lower numbers are higher
- // priority.
+ // |priority| is the priority of this buffer.
// |stream| is a pointer to the stream which is managing this buffer.
SpdyIOBuffer(IOBuffer* buffer, int size, int priority, SpdyStream* stream);
Ryan Hamilton 2012/04/23 22:51:05 Can you make |priority| a RequestPriority? It loo
szym 2012/04/24 00:19:31 I considered that. The only doubt was caused by th
Ryan Hamilton 2012/04/24 00:42:11 Hm. I think I would be inclined to change the cla
szym 2012/04/24 00:47:58 Yup. I'm on it.
SpdyIOBuffer();
@@ -39,7 +38,7 @@ class NET_EXPORT_PRIVATE SpdyIOBuffer {
// Comparison operator to support sorting.
bool operator<(const SpdyIOBuffer& other) const {
if (priority_ != other.priority_)
- return priority_ > other.priority_;
+ return priority_ < other.priority_;
return position_ > other.position_;
}

Powered by Google App Engine
This is Rietveld 408576698