OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/base/request_priority.h" | 5 #include "net/base/request_priority.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 namespace net { | 9 namespace net { |
10 | 10 |
11 const char* RequestPriorityToString(RequestPriority priority) { | 11 const char* RequestPriorityToString(RequestPriority priority) { |
12 switch (priority) { | 12 switch (priority) { |
| 13 case THROTTLED: |
| 14 return "THROTTLED"; |
13 case IDLE: | 15 case IDLE: |
14 return "IDLE"; | 16 return "IDLE"; |
15 case LOWEST: | 17 case LOWEST: |
16 return "LOWEST"; | 18 return "LOWEST"; |
17 case LOW: | 19 case LOW: |
18 return "LOW"; | 20 return "LOW"; |
19 case MEDIUM: | 21 case MEDIUM: |
20 return "MEDIUM"; | 22 return "MEDIUM"; |
21 case HIGHEST: | 23 case HIGHEST: |
22 return "HIGHEST"; | 24 return "HIGHEST"; |
23 } | 25 } |
24 NOTREACHED(); | 26 NOTREACHED(); |
25 return "UNKNOWN_PRIORITY"; | 27 return "UNKNOWN_PRIORITY"; |
26 } | 28 } |
27 | 29 |
28 } // namespace net | 30 } // namespace net |
OLD | NEW |