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

Side by Side Diff: net/base/request_priority.cc

Issue 1866483002: Add a new priority level, THROTTLED, below IDLE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjusted predictor priorities. Created 4 years, 2 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 unified diff | Download patch
OLDNEW
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698