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

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

Issue 257083002: Check BrowsingInstance before swapping prerenders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: creis comments Created 6 years, 7 months 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
OLDNEW
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 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_FINAL_STATUS_H_ 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_FINAL_STATUS_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_FINAL_STATUS_H_ 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_FINAL_STATUS_H_
7 7
8 #include "chrome/browser/prerender/prerender_origin.h" 8 #include "chrome/browser/prerender/prerender_origin.h"
9 9
10 namespace prerender { 10 namespace prerender {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // Obsolete: FINAL_STATUS_MATCH_COMPLETE_DUMMY = 38, 53 // Obsolete: FINAL_STATUS_MATCH_COMPLETE_DUMMY = 38,
54 FINAL_STATUS_DUPLICATE = 39, 54 FINAL_STATUS_DUPLICATE = 39,
55 FINAL_STATUS_OPEN_URL = 40, 55 FINAL_STATUS_OPEN_URL = 40,
56 FINAL_STATUS_WOULD_HAVE_BEEN_USED = 41, 56 FINAL_STATUS_WOULD_HAVE_BEEN_USED = 41,
57 FINAL_STATUS_REGISTER_PROTOCOL_HANDLER = 42, 57 FINAL_STATUS_REGISTER_PROTOCOL_HANDLER = 42,
58 FINAL_STATUS_CREATING_AUDIO_STREAM = 43, 58 FINAL_STATUS_CREATING_AUDIO_STREAM = 43,
59 FINAL_STATUS_PAGE_BEING_CAPTURED = 44, 59 FINAL_STATUS_PAGE_BEING_CAPTURED = 44,
60 FINAL_STATUS_BAD_DEFERRED_REDIRECT = 45, 60 FINAL_STATUS_BAD_DEFERRED_REDIRECT = 45,
61 FINAL_STATUS_NAVIGATION_UNCOMMITTED = 46, 61 FINAL_STATUS_NAVIGATION_UNCOMMITTED = 46,
62 FINAL_STATUS_NEW_NAVIGATION_ENTRY = 47, 62 FINAL_STATUS_NEW_NAVIGATION_ENTRY = 47,
63 FINAL_STATUS_NON_EMPTY_BROWSING_INSTANCE = 48,
63 FINAL_STATUS_MAX, 64 FINAL_STATUS_MAX,
64 }; 65 };
65 66
66 // Return a human-readable name for |final_status|. |final_status| 67 // Return a human-readable name for |final_status|. |final_status|
67 // is expected to be a valid value. 68 // is expected to be a valid value.
68 const char* NameFromFinalStatus(FinalStatus final_status); 69 const char* NameFromFinalStatus(FinalStatus final_status);
69 70
70 } // namespace prerender 71 } // namespace prerender
71 72
72 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_FINAL_STATUS_H_ 73 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_FINAL_STATUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698