| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/prerender/prerender_final_status.h" | 5 #include "chrome/browser/prerender/prerender_final_status.h" |
| 6 | 6 |
| 7 #include "base/macros.h" |
| 7 #include "chrome/browser/prerender/prerender_manager.h" | 8 #include "chrome/browser/prerender/prerender_manager.h" |
| 8 | 9 |
| 9 namespace prerender { | 10 namespace prerender { |
| 10 | 11 |
| 11 namespace { | 12 namespace { |
| 12 | 13 |
| 13 const char* kFinalStatusNames[] = { | 14 const char* kFinalStatusNames[] = { |
| 14 "Used", | 15 "Used", |
| 15 "Timed Out", | 16 "Timed Out", |
| 16 "Evicted", | 17 "Evicted", |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 71 |
| 71 } // namespace | 72 } // namespace |
| 72 | 73 |
| 73 const char* NameFromFinalStatus(FinalStatus final_status) { | 74 const char* NameFromFinalStatus(FinalStatus final_status) { |
| 74 DCHECK_LT(static_cast<unsigned int>(final_status), | 75 DCHECK_LT(static_cast<unsigned int>(final_status), |
| 75 arraysize(kFinalStatusNames)); | 76 arraysize(kFinalStatusNames)); |
| 76 return kFinalStatusNames[final_status]; | 77 return kFinalStatusNames[final_status]; |
| 77 } | 78 } |
| 78 | 79 |
| 79 } // namespace prerender | 80 } // namespace prerender |
| OLD | NEW |