Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(742)

Side by Side Diff: chrome/browser/prerender/prerender_final_status.cc

Issue 8785007: Prerenders that send an OpenURL are canceled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comment and OVERRIDE Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/prerender/prerender_final_status.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 "Session Storage Namespace Mismatch",
51 "No Use Group", 51 "No Use Group",
52 "Match Complete Dummy", 52 "Match Complete Dummy",
53 "Duplicate", 53 "Duplicate",
54 "OpenURL",
54 "Max", 55 "Max",
55 }; 56 };
56 COMPILE_ASSERT(arraysize(kFinalStatusNames) == FINAL_STATUS_MAX + 1, 57 COMPILE_ASSERT(arraysize(kFinalStatusNames) == FINAL_STATUS_MAX + 1,
57 PrerenderFinalStatus_name_count_mismatch); 58 PrerenderFinalStatus_name_count_mismatch);
58 59
59 } 60 }
60 61
61 const char* NameFromFinalStatus(FinalStatus final_status) { 62 const char* NameFromFinalStatus(FinalStatus final_status) {
62 DCHECK_LT(static_cast<unsigned int>(final_status), 63 DCHECK_LT(static_cast<unsigned int>(final_status),
63 arraysize(kFinalStatusNames)); 64 arraysize(kFinalStatusNames));
64 return kFinalStatusNames[final_status]; 65 return kFinalStatusNames[final_status];
65 } 66 }
66 67
67 } // namespace prerender 68 } // namespace prerender
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_final_status.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698