| Index: net/http/http_network_transaction.cc
|
| diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc
|
| index a9d557f9a736e6f437aaf0f7aa89087c50a050fb..9af583b376c8c94647dbe9ade9301455ace5ce70 100644
|
| --- a/net/http/http_network_transaction.cc
|
| +++ b/net/http/http_network_transaction.cc
|
| @@ -1833,6 +1833,22 @@ std::string HttpNetworkTransaction::DescribeState(State state) {
|
| return description;
|
| }
|
|
|
| +// TODO(gavinp): re-adjust this once SPDY v3 has three priority bits,
|
| +// eliminating the need for this folding.
|
| +int ConvertRequestPriorityToSpdyPriority(const RequestPriority priority) {
|
| + DCHECK(HIGHEST <= priority && priority < NUM_PRIORITIES);
|
| + switch (priority) {
|
| + case LOWEST:
|
| + return SPDY_PRIORITY_LOWEST-1;
|
| + case IDLE:
|
| + return SPDY_PRIORITY_LOWEST;
|
| + default:
|
| + return priority;
|
| + }
|
| +}
|
| +
|
| +
|
| +
|
| #undef STATE_CASE
|
|
|
| } // namespace net
|
|
|