| Index: net/spdy/spdy_http_utils.cc
|
| diff --git a/net/spdy/spdy_http_utils.cc b/net/spdy/spdy_http_utils.cc
|
| index edb8f1b6ed208f6c25bbefc6c43460dc3b73c033..41647c1729fc26c920374e564de118c34c59c007 100644
|
| --- a/net/spdy/spdy_http_utils.cc
|
| +++ b/net/spdy/spdy_http_utils.cc
|
| @@ -147,6 +147,16 @@ SpdyPriority ConvertRequestPriorityToSpdyPriority(
|
| }
|
| }
|
|
|
| +NET_EXPORT_PRIVATE RequestPriority ConvertSpdyPriorityToRequestPriority(
|
| + SpdyPriority priority,
|
| + int protocol_version) {
|
| + // Handle invalid values gracefully, and pick LOW to map 2 back
|
| + // to for SPDY/2.
|
| + SpdyPriority idle_cutoff = (protocol_version == 2) ? 3 : 5;
|
| + return (priority >= idle_cutoff) ?
|
| + IDLE : static_cast<RequestPriority>(HIGHEST - priority);
|
| +}
|
| +
|
| GURL GetUrlFromHeaderBlock(const SpdyHeaderBlock& headers,
|
| int protocol_version,
|
| bool pushed) {
|
|
|