OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/prerender/prerender_manager.h" | 7 #include "chrome/browser/prerender/prerender_manager.h" |
8 | 8 |
9 namespace prerender { | 9 namespace prerender { |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 "window.opener", | 40 "window.opener", |
41 "Page ID Conflict", | 41 "Page ID Conflict", |
42 "Safe Browsing", | 42 "Safe Browsing", |
43 "Fragment Mismatch", | 43 "Fragment Mismatch", |
44 "SSL Client Certificate Requested", | 44 "SSL Client Certificate Requested", |
45 "Cache or History Cleared", | 45 "Cache or History Cleared", |
46 "Cancelled", | 46 "Cancelled", |
47 "SSL Error", | 47 "SSL Error", |
48 "Cross-Site Navigation Pending", | 48 "Cross-Site Navigation Pending", |
49 "DevTools Attached To The Tab", | 49 "DevTools Attached To The Tab", |
| 50 "Session Storage Namespace Mismatch", |
50 "Max", | 51 "Max", |
51 }; | 52 }; |
52 COMPILE_ASSERT(arraysize(kFinalStatusNames) == FINAL_STATUS_MAX + 1, | 53 COMPILE_ASSERT(arraysize(kFinalStatusNames) == FINAL_STATUS_MAX + 1, |
53 PrerenderFinalStatus_name_count_mismatch); | 54 PrerenderFinalStatus_name_count_mismatch); |
54 | 55 |
55 } | 56 } |
56 | 57 |
57 const char* NameFromFinalStatus(FinalStatus final_status) { | 58 const char* NameFromFinalStatus(FinalStatus final_status) { |
58 DCHECK_LT(static_cast<unsigned int>(final_status), | 59 DCHECK_LT(static_cast<unsigned int>(final_status), |
59 arraysize(kFinalStatusNames)); | 60 arraysize(kFinalStatusNames)); |
60 return kFinalStatusNames[final_status]; | 61 return kFinalStatusNames[final_status]; |
61 } | 62 } |
62 | 63 |
63 } // namespace prerender | 64 } // namespace prerender |
OLD | NEW |