| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 "Credential Manager API", | 70 "Credential Manager API", |
| 71 "NoStatePrefetch Finished", | 71 "NoStatePrefetch Finished", |
| 72 "ServiceWorker", |
| 72 "Max", | 73 "Max", |
| 73 }; | 74 }; |
| 74 static_assert(arraysize(kFinalStatusNames) == FINAL_STATUS_MAX + 1, | 75 static_assert(arraysize(kFinalStatusNames) == FINAL_STATUS_MAX + 1, |
| 75 "status name count mismatch"); | 76 "status name count mismatch"); |
| 76 | 77 |
| 77 } // namespace | 78 } // namespace |
| 78 | 79 |
| 79 const char* NameFromFinalStatus(FinalStatus final_status) { | 80 const char* NameFromFinalStatus(FinalStatus final_status) { |
| 80 DCHECK_LT(static_cast<unsigned int>(final_status), | 81 DCHECK_LT(static_cast<unsigned int>(final_status), |
| 81 arraysize(kFinalStatusNames)); | 82 arraysize(kFinalStatusNames)); |
| 82 return kFinalStatusNames[final_status]; | 83 return kFinalStatusNames[final_status]; |
| 83 } | 84 } |
| 84 | 85 |
| 85 } // namespace prerender | 86 } // namespace prerender |
| OLD | NEW |