- add sources.
[platform/framework/web/crosswalk.git] / src / net / base / request_priority.cc
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.
4
5 #include "net/base/request_priority.h"
6
7 #include "base/logging.h"
8
9 namespace net {
10
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";
23   }
24   NOTREACHED();
25   return "UNKNOWN_PRIORITY";
26 }
27
28 }  // namespace net