Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / net / base / request_priority.cc
blob4f2ab7f7e06107a31676f88c9e3a506afd2e639a
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "net/base/request_priority.h"
7 #include "base/logging.h"
9 namespace net {
11 const char* RequestPriorityToString(RequestPriority priority) {
12 switch (priority) {
13 case IDLE:
14 return "IDLE";
15 case LOWEST:
16 return "LOWEST";
17 case LOW:
18 return "LOW";
19 case MEDIUM:
20 return "MEDIUM";
21 case HIGHEST:
22 return "HIGHEST";
24 NOTREACHED();
25 return "UNKNOWN_PRIORITY";
28 } // namespace net