| 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 "base/macros.h" |
| 8 #include "chrome/browser/prerender/prerender_manager.h" | 8 #include "chrome/browser/prerender/prerender_manager.h" |
| 9 | 9 |
| 10 namespace prerender { | 10 namespace prerender { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 "Bad Deferred Redirect", | 60 "Bad Deferred Redirect", |
| 61 "Navigation Uncommitted", | 61 "Navigation Uncommitted", |
| 62 "New Navigation Entry", | 62 "New Navigation Entry", |
| 63 "Cookie Store Not Loaded", | 63 "Cookie Store Not Loaded", |
| 64 "Cookie Conflict", | 64 "Cookie Conflict", |
| 65 "Non-Empty Browsing Instance", | 65 "Non-Empty Browsing Instance", |
| 66 "Navigation Intercepted", | 66 "Navigation Intercepted", |
| 67 "Prerendering Disabled", | 67 "Prerendering Disabled", |
| 68 "Cellular Network", | 68 "Cellular Network", |
| 69 "Block Third Party Cookies", | 69 "Block Third Party Cookies", |
| 70 "NoStatePrefetch Finished", |
| 70 "Max", | 71 "Max", |
| 71 }; | 72 }; |
| 72 static_assert(arraysize(kFinalStatusNames) == FINAL_STATUS_MAX + 1, | 73 static_assert(arraysize(kFinalStatusNames) == FINAL_STATUS_MAX + 1, |
| 73 "status name count mismatch"); | 74 "status name count mismatch"); |
| 74 | 75 |
| 75 } // namespace | 76 } // namespace |
| 76 | 77 |
| 77 const char* NameFromFinalStatus(FinalStatus final_status) { | 78 const char* NameFromFinalStatus(FinalStatus final_status) { |
| 78 DCHECK_LT(static_cast<unsigned int>(final_status), | 79 DCHECK_LT(static_cast<unsigned int>(final_status), |
| 79 arraysize(kFinalStatusNames)); | 80 arraysize(kFinalStatusNames)); |
| 80 return kFinalStatusNames[final_status]; | 81 return kFinalStatusNames[final_status]; |
| 81 } | 82 } |
| 82 | 83 |
| 83 } // namespace prerender | 84 } // namespace prerender |
| OLD | NEW |